Commit Graph

212 Commits

Author SHA1 Message Date
Andreas Nedbal e90b4b8580 Add Bluesky link to sharing options 2024-03-01 21:14:59 +01:00
Andreas Nedbal af666c7733 Fix lint nits 2024-02-28 00:57:26 +01:00
Andreas Nedbal 2db1d998b7 Fix not being able to unset administrator privileges in UI 2024-02-28 00:57:26 +01:00
Andreas Nedbal 62ba205d3e Fix rubocop nits 2024-01-27 19:21:07 +01:00
Andreas Nedbal 658cb0442b Rename all occurences of associative inbox entry access 2024-01-27 19:21:07 +01:00
Andreas Nedbal 06b2421f2c Rename all occurences of `Inbox` class to `InboxEntry` 2024-01-27 19:21:07 +01:00
Andreas Nedbal 05634ae69d Move target user resolving code into `report` method 2024-01-24 21:08:44 +01:00
Andreas Nedbal 27a57e304d Set target user in report action 2024-01-24 21:08:44 +01:00
Karina Kwiatek 539868173c Fix `has_reacted` and `is_subscribed` not being set 2023-12-19 13:45:25 +01:00
Karina Kwiatek b02375985a Add option to send question to own inbox 2023-12-11 23:14:58 +01:00
Karina J. Kwiatek 5d89e21e33
Merge pull request #1442 from Retrospring/refactor/send-to-followers-individually
Split up question worker to send to an individual user rather than to all followers
2023-12-11 20:04:15 +01:00
Karina Kwiatek b2b9826071 Fix lint errors 2023-12-11 19:59:07 +01:00
Karina Kwiatek 64ac18843e Replace usages of `QuestionWorker` 2023-12-11 19:56:50 +01:00
Karina Kwiatek 13d69cfd43 Fix render error on answer create 2023-12-09 18:05:50 +01:00
Andreas Nedbal 4e434dd268 Remove legacy SmileController 2023-12-09 00:59:14 +01:00
Andreas Nedbal 10473f4ed0 Remove `Ajax::RelationshipController` and spec 2023-10-28 10:41:24 +02:00
Andreas Nedbal 563f834287 Remove `Ajax::SubscriptionController` 2023-10-25 03:14:57 +02:00
Andreas Nedbal 8b86e2f123 Set text and URL separately for `navigator.share`
Apparently for most mobile OSses `url` is a required share option
2023-10-18 20:01:59 +02:00
Karina Kwiatek 9563a586c2 Appease the dog overlords (mostly) 2023-10-15 18:42:30 +02:00
Karina Kwiatek 849d4f74f2 Move comments to a turbo frame 2023-10-15 18:42:30 +02:00
Andreas Nedbal f6e26f1751 Remove superfluous rubocop:disable comments 2023-10-15 10:42:58 +02:00
Karina Kwiatek 63372cdeac Pass subscribed answer IDs on answer create 2023-05-08 21:45:31 +02:00
Karina Kwiatek 0132d7b251 Remove usages of `is_active` 2023-05-05 16:01:40 +02:00
Georg Gadinger 4ee2b46b32 add sharing to telegram 2023-02-19 20:58:47 +01:00
Georg Gadinger 9a77b89cda use remote_ip 2: electric boogaloo 2023-02-07 07:38:59 +01:00
Andreas Nedbal 8f0ae5171d Appease the dog overlords 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
Georg Gadinger f1a545aea5 use remote_ip 2023-02-04 22:31:53 +01:00
Karina Kwiatek ea4e9e2205 Don't require an endpoint for unsubscribe
This was added by mistake earlier. Unsubscribing without an `endpoint` parameter is supposed to remove all subscriptions.
2023-01-04 16:38:48 +01:00
Karina Kwiatek 3105cb74b4 Make `endpoint` and `subscription` parameters required on web push endpoints 2023-01-04 16:34:38 +01:00
Karina Kwiatek 48c7beb54e Only allow checking of own subscriptions 2023-01-02 11:52:02 +01:00
Karina Kwiatek efad76855e Add endpoint for checking subscription status 2023-01-02 11:52:02 +01:00
Karina Kwiatek 10c224b2fe Address review comments from @nilsding
Co-authored-by: nilsding <nilsding@nilsding.org>
2023-01-02 11:50:48 +01:00
Karina Kwiatek 3eafa5e335 Add tests for subscription management 2023-01-02 11:50:48 +01:00
Karina Kwiatek 66b1dac3b9 Improve UX for push subscription management 2023-01-02 11:50:48 +01:00
Karina Kwiatek 8ff213af4e Add the ability to unsubscribe from push notifications 2023-01-02 11:50:48 +01:00
Karina Kwiatek 752cf1506b Add settings page for push notifications 2023-01-02 11:50:47 +01:00
Karina Kwiatek bae227be76 Add endpoints for getting webpush public key and subscribing 2023-01-02 11:50:47 +01:00
Georg Gadinger fb07eda972 remove errors 2022-12-29 20:57:28 +01:00
Georg Gadinger 9413d23a02 let Zeitwerk autoload the `lib/` directory
this also allows the UseCase classes to be hot reloaded in dev 🎉

- remove use_case requires (except for the exporter as Zeitwerk
  doesn't know about the subclasses)
- move version.rb to lib/retrospring so that Zeitwerk knows where
  to find Retrospring::Version
2022-12-29 20:57:28 +01:00
Andreas Nedbal 5a0e42fe66 use `has_cached_role?` instead of `has_role?` 2022-12-18 21:47:03 +01:00
Andreas Nedbal ddded27757 Remove anonymous block AJAX implementation 2022-11-21 22:28:38 +01:00
Andreas Nedbal 9048a3e7d8 Remove AJAX Mute Rules code 2022-11-21 20:26:19 +01:00
Andreas Nedbal 44c0136c9e Remove AJAX question generation code 2022-11-18 23:35:38 +01:00
Andreas Nedbal 6a083230dd Fixed wrong call of translation method in ban action 2022-09-03 16:42:17 +02:00
Andreas Nedbal 8ad0cf24b8 Fix bug preventing deletion of freshly created mute rules 2022-09-02 19:59:43 +02:00
Karina Kwiatek 4814ccdaa5 Use null-safe navigation for destroying inbox entries when blocking 2022-08-20 19:18:28 +02:00
Karina Kwiatek 2d01d9b365 Apply review suggestions
Co-authored-by: Andreas Nedbal <git@pixelde.su>
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-08-20 19:05:55 +02:00
Karina Kwiatek 92a5095c00 Appease the robot canine 2022-08-20 19:05:55 +02:00
Karina Kwiatek 136eac8bdd Add page for managing site-wide anonymous-blocks 2022-08-20 19:05:55 +02:00