5
3
mirror of https://github.com/tildeverse/lobsters synced 2024-06-20 15:37:04 +00:00
Commit Graph

133 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
Peter Bhat Harkins
fabc8381de quick fix to #1174 to prevent 500s 2023-07-27 08:53:08 -05:00
Patryk
f3ab19ee1c
Add youtube duplicate detection (#1174) 2023-04-26 08:21:05 -05:00
tassja
d352908c63 rename: repo variable to isolate use to single test 2022-11-07 16:35:52 +01:00
tassja
37b2ff6bf0 test: ensure stories are hidden in active tab 2022-11-07 16:26:57 +01:00
Fat Shinobi
f10529e727
Domains: web editing, transparency in tracker banning (#1119) 2022-08-31 13:23:33 +00:00
Peter Bhat Harkins
a475d9b593 tests, frontend for previous 2022-05-25 09:31:16 -05:00
Peter Bhat Harkins
78deac1312
Merge branch 'master' into feature-917-category-editing 2022-05-19 05:39:33 +00:00
vincentrolfs
b90a2cb3c8
Make system messages deleteable (Fix #1049) 2022-04-20 13:09:37 +00:00
Peter Bhat Harkins
b40633eb53 fixups, rubocop 2022-02-21 19:03:52 -06:00
Peter Bhat Harkins
6a84f47205 /active 2022-02-19 20:37:13 -06:00
ugla
8e0f47fa9e
Allow gemini and gopher homepage URLs (#944) 2022-01-22 03:52:22 +00:00
Peter Bhat Harkins
5cda10e97d fix from 293c82e8 2021-12-14 14:18:39 -08:00
Prabu Weerasinghe
9041e3df49
Recognize Arvix html and pdf urls as duplicates (#965) 2021-10-25 22:19:45 +00:00
Dorian Marié
cc19708575
rake fake_data - generate old enough accounts (#981) 2021-05-18 17:11:01 +00:00
Peter Bhat Harkins
5f5fa8ef03 subtract comment/story karma if mod removes
Matches impact of the comment/story by using the vote count as a penalty.
Flags effectively count extra because they -1 when applied and -2 when the mod
removes.
2020-12-14 12:07:40 -06:00
Three Planets Software
67c67dd7de
Merge branch 'master' into feature-917-category-editing 2020-08-28 21:27:06 -04:00
Peter Bhat Harkins
7e85eb081d extract story text cache for fast migrations 2020-08-25 07:51:09 -05:00
Three Planets Software
ef927af10a Add tests for categories 2020-08-20 14:01:16 -04:00
Chris Jones
2ac334dba5
/hats: only show email to users (#868)
Users with hats have reported spambots.
2020-08-19 03:45:29 +00:00
Gabriel Baldão
58d1dfeab8
rename comment scope (#874) 2020-08-19 02:09:33 +00:00
Peter Bhat Harkins
03be4f828f Fix story lxrqpo throwing exceptions (#858) 2020-08-15 12:02:09 -05:00
Hunter Madison
f377fdfffe
wrap story/somment creation in a transcation (#899)
The new reconciliation process between an object's Vote and its
memoized count requires that MariaDB can see the records in the Vote
table. Currently, we are seeing the vote be created, then the
memoization for new comments and stories to zero.

Also resolves rubocop catching pushcx being sloppy.
2020-08-09 16:50:06 +00:00
Peter Bhat Harkins
5341d7a067 add tag categories 2020-08-09 08:41:20 -05:00
Peter Bhat Harkins
20c1590753 memoize story/comment score/flags more efficiently 2020-08-08 16:40:28 -05:00
Alessandro Minali
18b9ee4478
Filter out front page posts from 'recent' (#882) 2020-07-14 00:10:31 +00:00
Peter Bhat Harkins
0105930afa bump rails; rubocop cleanup 2020-05-18 19:28:26 -05:00
Andrew
6fafb4aba5
Improve URL dupe checker to catch anchors (#802) 2020-05-07 01:10:24 +00:00
Andrew
8566e7d286
Fix test (#842) 2020-05-06 02:16:33 +00:00
Calvin Buckley
63d73ab80d
Fix PDF title PR and add test case for PDF titles (#833) 2020-03-04 05:58:17 -08:00
Diep Pham
3a1815a19f
add one_foreign_key_present validator to moderation model (#827) 2020-03-02 18:50:26 -08:00
Peter Bhat Harkins
5f50c79a20 PDF parsing support for fetch title
Merge #707
2020-03-02 20:34:45 -06:00
Peter Bhat Harkins
feea257c64 tag links as ugc rather than nofollow 2020-03-02 20:10:55 -06:00
Peter Bhat Harkins
9d09ca98b7 prohibit stories from new domains by new users 2020-02-10 13:34:41 -06:00
Dmitry Shveikus
51d97aa359 Add validations into models (#745, #766) 2020-02-05 09:15:25 -06:00
Maurice Wahba
974b44595e
Add validations for vote, story, user (#758) 2020-02-05 06:54:35 -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
37e5495d67 name fixtures 2019-10-27 20:08:22 -05:00
Mark Billie
71fa476ede do not use bad canonical links (#769) 2019-10-27 17:59:28 -07:00
Amin Arria
fb3f407c1c test specific Invitation and InvitationRequest field validations (#763) 2019-10-09 07:30:24 -07:00
Amin Arria
a587c15eaa Add validation for invitation and invitation request (#754) 2019-10-06 17:12:46 -07:00
Thomas Dziedzic
d5016368e5 bump rubocop (#753) 2019-10-06 17:01:18 -07:00
Chris Jones
a4a907984c Add validation for comments, hats, hat requests (#749) 2019-10-02 06:32:02 -07:00
Lachie Cox
225900e981 Fixes #733 by refactoring the tagged query (#744) 2019-09-30 19:10:11 -07:00
Thomas Dziedzic
4d377e99df Enable rubocop rspec (#703) 2019-07-17 06:21:09 -07:00
Preston Mueller
0d7806b629 update comment count when merged into a story
Fix #683
2019-06-11 11:08:32 -07:00
Peter Bhat Harkins
0bc2cf4fc0 fix: allow subdomains on homepage 2019-06-11 09:29:13 -05:00
Peter Bhat Harkins
082ce1de70 factory for clearer tests 2019-05-29 09:13:58 -05:00
Peter Bhat Harkins
a4af5a18f8 ReplyingComments: add tests, fix on deleted, less gas
Fixes showing replies for comments that were deleted or moderated.

Doesn't show replies if the parent commenter has flagged the replier in the
thread.
2019-05-29 09:04:58 -05:00
Peter Bhat Harkins
8936c830f0 fix tag search 2019-05-08 20:44:53 -05:00