Commit Graph

113 Commits

Author SHA1 Message Date
Peter Bhat Harkins 9fff6ae927 enable mod_userdir
diff of `rails routes`:

12,13d11
<                              GET      /newest/:user(.:format)                        home#newest_by_user
<                              GET      /newest/:user/page/:page(.:format)             home#newest_by_user
32d29
<                 user_threads GET      /threads/:user(.:format)                       comments#user_threads
120,122c117,132
<                            u GET      /u(.:format)                                   users#tree
<                         user GET      /u/:username(.:format)                         users#show
<                user_standing GET      /u/:username/standing(.:format)                users#standing
---
>                   users_tree GET      /users(.:format)                               users#tree
>                         user GET      /~:username(.:format)                          users#show
>                user_standing GET      /~:username/standing(.:format)                 users#standing
>                              GET      /~:user/stories(/page/:page)(.:format)         home#newest_by_user
>                 user_threads GET      /~:user/threads(.:format)                      comments#user_threads
>                     user_ban POST     /~:username/ban(.:format)                      users#ban
>                   user_unban POST     /~:username/unban(.:format)                    users#unban
>          user_disable_invite POST     /~:username/disable_invitation(.:format)       users#disable_invitation
>           user_enable_invite POST     /~:username/enable_invitation(.:format)        users#enable_invitation
>                            u GET      /u(.:format)                                   redirect(302, /users)
>                              GET      /u/:username(.:format)                         redirect(302, /~%{username})
>                              GET      /@:username(.:format)                          redirect(302, /~%{username})
>                              GET      /u/:username/standing(.:format)                redirect(302, ~%{username}/standing)
>                              GET      /newest/:user(.:format)                        redirect(302, ~%{user}/stories)
>                              GET      /newest/:user(/page/:page)(.:format)           redirect(302, ~%{user}/stories/page/%{page})
>                              GET      /threads/:user(.:format)                       redirect(302, ~%{user}/threads)
125,128d134
<                     user_ban POST     /users/:username/ban(.:format)                 users#ban
<                   user_unban POST     /users/:username/unban(.:format)               users#unban
<          user_disable_invite POST     /users/:username/disable_invitation(.:format)  users#disable_invitation
<           user_enable_invite POST     /users/:username/enable_invitation(.:format)   users#enable_invitation
2023-08-29 07:49:02 -05:00
Robert Melton 1d3ad81fc2
Added aria role and levels for stories and comments (#1149) 2023-02-08 10:47:40 -06:00
William Karsten cf134648c0
Fix Archive Dropdown Z-index (#1130)
Stories which have a negative rating are styled with an opacity of < 1.
This results in CSS mistakes which this patch fixes by selectively targeting,
which elements receive the reduced opacity.
2022-10-19 07:54:39 -05:00
Ethan Wong bdaec05bc6
Fix: archive button has no hand cursor on hover (#1128) 2022-09-26 13:16:13 +00:00
William Karsten 4a0846746a
Fix bug where the comment flag dropdown is out of position. (#1126) 2022-08-25 17:31:44 +00:00
Ethan Wong 7a69fb823a
Fix incorrect dropdown menu location for the archive button (#1121) 2022-08-24 13:28:06 +00:00
Peter Bhat Harkins 92f431d1c0 better story 404 to show removal info 2022-02-20 13:50:08 -06:00
Peter Bhat Harkins dba88ba6c8 Story: rename expired -> deleted to match usage 2022-02-08 22:20:41 -06:00
Peter Bhat Harkins 22907172fb double up the checkbox hack to dismiss the archive menu 2022-01-22 10:32:13 -06:00
Peter Bhat Harkins 39d5fd4c57 nitpicky tweaks, s/cache/archive/ 2022-01-22 09:18:19 -06:00
alternet0 a04cef6794 Update _listdetail.html.erb 2022-01-22 09:04:50 -06:00
alternet0 40a0fcffdf Update _listdetail.html.erb 2022-01-22 08:58:26 -06:00
Eric Banisadr c4440695e2
Have browser break long headlines
Fix #849
2020-11-17 14:46:09 +00:00
Peter Bhat Harkins 7e85eb081d extract story text cache for fast migrations 2020-08-25 07:51:09 -05:00
Peter Bhat Harkins 20c1590753 memoize story/comment score/flags more efficiently 2020-08-08 16:40:28 -05:00
Peter Bhat Harkins 24fa1e6a4d fix authored tag on merged story 2020-06-27 08:32:09 -05:00
Peter Bhat Harkins 7a59fd9565 1 + n on story domain for merged stories 2020-06-07 14:47:02 -05:00
Peter Bhat Harkins e2ea9decb2 noreferrer 2020-05-16 14:44:25 -05:00
Peter Bhat Harkins feea257c64 tag links as ugc rather than nofollow 2020-03-02 20:10:55 -06:00
Hunter Madison 2b494c5181
Mark story links as user generated content (#831) 2020-03-02 18:07:55 -08:00
Peter Bhat Harkins 630ace42f8 domain banning 2020-02-10 07:29:02 -06:00
Peter Bhat Harkins d1504e0af1 always show comments link to mods 2020-02-02 22:46:34 -06:00
Hunter Madison 9aa5828634 fix domain page routing (#811) 2020-01-27 20:10:03 -08:00
Hunter Madison f718da1820 break out Domain model from story, index story text (#797) 2020-01-22 09:33:21 -06:00
Peter Bhat Harkins db3d6453e8 fix 1 + n on merged stories, even if ugly to do from a view 2019-08-15 18:58:04 -05:00
Peter Bhat Harkins a6cd21999e hide scores on flagged stories/comments
Removes the little bit of satisfaction of seeing the score go down if user is
flagging to punish someone for disagreeing.
2019-08-14 09:09:15 -05:00
Michael Howell b2ae092d20 Add a title attribute to the upvote button 2019-04-03 12:18:33 +00:00
Peter Bhat Harkins 4e653a9896 show all suggested tags/titles, lift work from view to db
Also extracted tag_link helper to dedupe that snippet of repeated code.
2019-03-13 08:46:51 -05:00
Frederik b2527d03e3 Fix </a> 2018-11-08 08:30:05 -06:00
Peter Bhat Harkins 7498867255 tweaks to display of similar stories 2018-11-07 11:49:33 -06:00
Félix Baylac-Jacqué 0c5e22ba5c Fix story author microformat tag.
The author entity was specified as a u-url instead of as a u-author.
2018-10-20 08:04:32 -05:00
Guillermo Bonvehí d3753cfb1b Fix small markup error 2018-10-10 07:26:27 -05:00
Peter Bhat Harkins 5e6f1e6455 send webmentions
Merge #535
2018-10-03 10:16:50 -05:00
Peter Bhat Harkins f1760e05a8 make comment link bigger on mobile
Close #524
2018-08-08 08:34:50 -05:00
Peter Bhat Harkins 7dfbbea3b5 fix 1 + n query loading tags 2018-06-22 23:56:01 -05:00
Peter Bhat Harkins 095d884615 bugfix: don't display merged stories if they've been deleted 2018-06-03 19:41:39 -05:00
Peter Bhat Harkins 1e0c13fbea remove dead code
5d8c7f7167 made the :strip_about option the
default behavior.
2018-01-24 08:54:07 -06:00
joshua stein 54eef91d2e fix placemwnt of the hidden count
closes #379
2017-07-13 19:14:58 -05:00
joshua stein 0ad6dffbe7 add story saving 2017-07-13 15:38:33 -05:00
joshua stein ed3d0ebec9 move story deletion/moderation to edit screen 2017-07-13 15:13:33 -05:00
Daniel Gustafsson 95ff3f9b4e Use _blank instead of _new in href target (#363)
"new" is a reserved keyword not allowed to use for browsing context
in HTML5 (as well as HTML4 and XHTML) as per § 6.1.5 in the HTML5
specification. Instead use "_blank" to ensure a new browsing context.
2017-05-31 09:51:47 -05:00
joshua stein 8ba9db8b04 stories: show edit link for merged stories 2017-05-01 21:20:46 -05:00
joshua stein af6466e600 Story: move archive URL to model, escape URL in case it has query params 2017-04-11 16:49:26 -05:00
joshua stein 0114e708e1 Story: show a snippet instead of just "Additional text available" 2017-03-28 11:08:01 -05:00
joshua stein f40a97a50f factor out avatar <img> code to show 2x version everywhere
closes #352
2017-03-23 16:36:40 -05:00
joshua stein 632208847a highlight stories to their authors that have suggestions
it would be nice to add an updated_at column to stories, and
created_at timestamps to suggested_{titles,taggings}, and then only
show the highlight if there are new suggestions after the last edit
2017-03-09 11:26:05 -06:00
joshua stein b3ed12e091 point archive links back to archive.is
archive.org is frequently not up to date, despite submitting a
request to cache the page on-demand.  archive.is spiders as soon as
the cache request is made.

This reverts commit 734e287760.

See #331
2017-03-01 14:40:17 -06:00
joshua stein 734e287760 point cache links at archive.org
closes #331
2016-12-15 08:57:46 -06:00
joshua stein 192a6c8a02 give up on "discuss"
closes issue #265
2016-02-21 09:43:17 -06:00
joshua stein 3afe1538f8 stories: show archive link to archive.is 2016-02-10 08:39:42 -06:00