I've changed this a few times because I didn't want to show
"discuss" to non-users, but they at least need a link to the story
to copy, so show a link with "no comments" to them.
i don't like showing "discuss" to logged out users, and now that we
have a story description icon that can link to the story text, back
out the change that made logged out users see discuss when they
can't discuss it.
For stories with both text and a link that have no comments, the only
way to view the text is to either log in (no account :( ) or view the
page source and find the story ID. This commit fixes that by always
showing the comments link.
Rather than keep "poorly titled" and "poorly tagged" as reasons for
flagging, make the user do the work of suggesting new ones.
At some point, suggested taggings will flip to real taggings once
they reach a certain count (to be determined later). This also has
to take into account tagging sets that don't contain current tags,
for when they need to be removed.
For titles, I'm not yet sure how to handle this in an automated
fashion except for the (probably rare) case of multiple users
submitting the same exact thing, but at least collect them for now.
Issue #207
To encourage folks to write story descriptions on links, let's mark stories with descriptions so that folks know to click through.
The pilcrow is a little visually heavy, but it seemed better than an arbitrary symbol.
Highlights username in a different color and says "authored by"
instead of just "by".
Move html class printing into a method in Story to use in the future
for friends, admin posts, etc.
Closes#171
A story downvote is considered a flag, just meaning the story has
problems and not necessarily that the user wants to ignore it. By
moving hiding out of Vote and into a new HiddenStory model, a user
can now both downvote/flag and hide separately, or just one or the
other.
Instead of hard-coding the scheme and host everywhere, use _path
methods to show relative URLs.
Except that our previous setting of
Rails.application.routes.default_url_options in
config.after_initialize made this moot because Rails inserts that
host into all _path helpers for some reason. So revert that
setting.
But then anything that wants an absolute URL doesn't know the
hostname and the root_url helper throws an exception. So make a
Rails.application.root_url shortcut to pass the per-app settings in
Rails.application to root_url.
Now we can just use _path helpers most places but still use _url
ones where we need them, such as in RSS views and e-mail templates.