Karina Kwiatek
491fb359d2
Ensure user profiles and questions are eager loaded
2023-10-22 19:54:51 +02:00
Georg Gadinger
c4da510fe7
fix deletion of notification entries when deleting a user
2023-10-18 22:13:25 +02:00
Georg Gadinger
a85ce45b25
appease the paw patrol
2023-10-18 21:57:09 +02:00
Georg Gadinger
8a26232fe6
bad dog
2023-10-18 21:53:30 +02:00
Georg Gadinger
dc41f15097
fix deletion of inbox entries when deleting an user
2023-10-18 21:52:47 +02:00
Andreas Nedbal
ffcaa5c4d9
Remove superfluous rubocop:disable comments
2023-10-15 10:42:58 +02:00
Andreas Nedbal
f6e26f1751
Remove superfluous rubocop:disable comments
2023-10-15 10:42:58 +02:00
Andreas Nedbal
f3f8e99045
Use `length` validation instead of `presence` for `MuteRule`
2023-10-15 10:16:21 +02:00
Karina Kwiatek
d39f37072d
Fix lint errors
2023-08-18 19:43:59 +02:00
Karina Kwiatek
54ac832c91
Ensure inbox caching timestamp gets updated when answering questions and returning to inbox
2023-08-16 21:57:31 +02:00
Karina Kwiatek
ece64669a1
Update caching timestamps in model events
2023-06-16 18:18:40 +02:00
Karina Kwiatek
f1863e5309
Fix notification created_at not being set for comment notifications
2023-05-26 20:39:19 +02:00
Karina Kwiatek
50531d3b6b
Cache notifications dropdown based on `notifications_updated_at`
2023-05-07 12:47:29 +02:00
Karina Kwiatek
4221f8cee9
Fix incorrect user being notified and mutes not being respected
2023-05-05 16:01:48 +02:00
Karina Kwiatek
9c4b2e452a
Prevent error when no one is subscribed
2023-05-05 16:01:40 +02:00
Karina Kwiatek
b93058b11d
Fix remaining lint errors
2023-05-05 16:01:40 +02:00
Karina Kwiatek
fb83f48adf
Fix lint errors
2023-05-05 16:01:40 +02:00
Karina Kwiatek
36d59d100e
Remove unused `destruct_by` method
2023-05-05 16:01:40 +02:00
Karina Kwiatek
f73fc87991
Simplify `notify` and `denotify` methods
2023-05-05 16:01:40 +02:00
Karina Kwiatek
0132d7b251
Remove usages of `is_active`
2023-05-05 16:01:40 +02:00
Karina Kwiatek
904eab8daa
Remove now unused `is_subscribed` method
2023-05-05 16:01:40 +02:00
Karina Kwiatek
55090a42f8
Merge pull request #1148 from Retrospring/moar-metrics
...
metrics: add counter for created/destroyed users
2023-04-29 09:54:53 +02:00
Georg Gadinger
a9cf00f75e
metrics: add counter for created/destroyed users
2023-03-29 08:01:35 +02:00
Georg Gadinger
6f59abe9dd
Update app/models/user/relationship/mute.rb
...
Co-authored-by: Karina Kwiatek <6197148+raccube@users.noreply.github.com>
2023-03-26 18:28:19 +02:00
Georg Gadinger
1ffa2e5125
filter out non-anon questions from blocked/muted users in questions view
2023-03-26 18:28:19 +02:00
Georg Gadinger
920187bc88
filter out non-anon questions from blocked/muted users in public timeline
2023-03-26 18:28:19 +02:00
Georg Gadinger
f1a1321a25
filter out non-anon questions from blocked/muted users in list timeline
2023-03-26 18:28:19 +02:00
Georg Gadinger
765397d813
filter out non-anon questions from blocked/muted users in home timeline
2023-03-26 18:28:19 +02:00
Karina Kwiatek
3c052e9e0e
Fix trivial lint issues
2023-03-07 19:14:20 +01:00
Karina Kwiatek
b93453dee4
Remove eager load from notifications
...
Unsure of how this managed to work before but eager loading polymorphic associations is not possible in this way.
2023-03-07 19:14:14 +01:00
Karina Kwiatek
14379acbd3
Fix incorrect access of `unread_inbox_count` in `notification_data`
2023-03-07 19:14:14 +01:00
Karina Kwiatek
68e0f02a2d
Adapt tests to match new counter methods
2023-03-07 19:14:14 +01:00
Karina Kwiatek
369ae1b378
Update PWA badge on push notification
2023-03-07 19:14:14 +01:00
Karina Kwiatek
1ec5ffa6d2
Cache inbox and notification counters
2023-03-07 19:14:14 +01:00
Karina Kwiatek
8cbfd273bc
Refactor counters to use `counter_cache`
2023-02-24 23:31:38 +01:00
Georg Gadinger
b937a10096
add some more metrics for answers and comments
2023-02-13 22:24:52 +01:00
Karina Kwiatek
c2baa86c09
Add `pinned_at` to answers
2023-02-12 20:19:50 +01:00
Georg Gadinger
e1aee89be0
remove expired service connection notifications
2023-02-12 19:26:31 +01:00
Georg Gadinger
606629577a
make URI.parse part of the validation for the sharing URL
...
the regexp alone and web browsers allows URLs to contain non-ASCII
characters, which `URI.parse` does not like -- resulting in the inbox
page to suddenly break.
also changed the `redirect_to` in the controller to a `render :edit` so
that validation errors are shown properly
2023-02-10 20:48:15 +01:00
Andreas Nedbal
490a06af27
Allow `sharing_custom_url` to be empty
2023-02-05 21:54:51 +01:00
Andreas Nedbal
47d1f5ccff
Validate format of `sharing_custom_url`
2023-02-05 21:54:51 +01:00
Andreas Nedbal
a56db2256b
Return sharing options when answering a question
2023-02-05 21:54:51 +01:00
Andreas Nedbal
d520755bc2
Remove service model
2023-02-05 21:54:51 +01:00
Andreas Nedbal
a2e45c85bf
Add migration to enable sharing for legacy service owners
2023-02-05 21:54:51 +01:00
Karina Kwiatek
40f7f8f525
Eager load notification targets
2023-02-02 11:03:27 +01:00
Karina Kwiatek
ab1b034cfb
Add type hints for paginators
2023-01-28 21:18:01 +01:00
Karina Kwiatek
32ba17ac72
Eager load profiles in paginators
2023-01-28 21:18:00 +01:00
Andreas Nedbal
c122652275
Increase allowed comment length to 512 characters
2023-01-22 10:36:23 +01:00
Andreas Nedbal
fc30bf8cac
Add more explicit message for format validation errors
2023-01-21 13:20:52 +01:00
Andreas Nedbal
47bccdb0c3
Fix screen_name regex being too lenient
2023-01-21 13:20:52 +01:00