679 Commits

Author SHA1 Message Date
2eaaa7af39
feat(backend): chat notify via email (#8314)
* client

* backend

* tests

* also save awaySince timestamp

* remove console.log

* chat notification logic

* send notification mails for chat messages

* externalize online check, resolver resover first

* prevent email notifications for blocked users

comment

* respect user email notification settings

* properly handle null case for email destructuring

* tests

* corrected mail style

---------

Co-authored-by: mahula <lenzmath@posteo.de>
2025-04-07 12:23:36 +02:00
Moriz Wahl
0835057cc7
refactor(backend): comment on observed post notification (#8311)
* all users that observe a post are notified when the post is commented, except of the author of the comment, or users that blocked the commenter

* test to illustrate the behavior of notifications for observed posts
2025-04-04 19:16:50 +02:00
01027e42cc
feat(webapp): track online status (#8312)
* client

* backend

* tests

* also save awaySince timestamp

* remove console.log
2025-04-03 17:19:53 +02:00
Moriz Wahl
538f409086
feat(backend): observe posts (#8292)
* After creating the post, the author of it automatically observes it to get notifications when there are interactions

* a user that comments a post, automatically observes that post to get notifications when there are more interactions on that post

* mutation that switches the state of the observation of a post on and off
2025-03-26 22:16:06 +01:00
mahula
368a05d867 adapt cheerio import to package update 2024-09-08 08:43:06 +02:00
mahula
7ef2c474b2 add package linkify-html to backend 2024-04-18 20:04:21 +02:00
mahula
b735824967
use dedicated linkifyjs packages according to package update 2024-04-18 19:01:05 +02:00
Wolfgang Huß
b5ae101931 Fix post language detection
- In case no language is detected set default.
2023-09-11 12:43:02 +02:00
Wolfgang Huß
cd206c238a Cleanup 2023-08-21 13:44:29 +02:00
Wolfgang Huß
28665bd175 Refine DKIM config for Nodemailer 2023-08-21 12:33:39 +02:00
Wolfgang Huß
be4d34228d Implement DKIM config for Nodemailer 2023-08-17 17:26:59 +02:00
0234244c09
Merge branch 'master' into 6590-chat-send-url 2023-07-19 14:21:49 +02:00
bc1015da8c
corrected field names to exclude, remove comment 2023-07-19 14:22:04 +02:00
4448ecd6fe
fix walk recursive & field definitions 2023-07-19 14:12:45 +02:00
256bcc2af7
do not filter chat message content with xss-middleware 2023-07-19 12:13:49 +02:00
Markus
0bc19cf226 [fix] added usertag as allowed html tags, so user highlighting works for the chat 2023-07-19 10:15:56 +02:00
Moriz Wahl
eed89f8c4b add chat middleware to add new message subscription 2023-07-18 12:46:19 +02:00
Moriz Wahl
1ac3553200
Merge branch 'master' into new-room-properties 2023-07-17 13:06:35 +02:00
Moriz Wahl
09be4d3442 test unread rooms query 2023-07-14 14:40:38 +02:00
Moriz Wahl
4310b3fa48 create message mutation returns full message object 2023-07-14 12:51:54 +02:00
Moriz Wahl
2fe93892a1 full room object for create room mutation 2023-07-14 12:21:40 +02:00
Moriz Wahl
1d92b40f50 lastMessage in room working 2023-07-14 11:52:51 +02:00
Moriz Wahl
9f1f028454 handle seen prop 2023-07-12 11:53:49 +02:00
f5c2fe7770
Merge branch 'master' into eslint-backend 2023-07-06 12:06:15 +02:00
Moriz Wahl
b3fec7bf6f
Merge branch 'master' into fix-subscriptions 2023-06-21 19:28:27 +02:00
5be2fe28b0
Merge branch 'master' into eslint-backend 2023-06-21 17:11:57 +02:00
373e915a14
make content optional parameter 2023-06-21 16:47:08 +02:00
ef7bc9283e
js -> ts rename 2023-06-21 16:43:29 +02:00
aaa033c6a3
lint fixes 2023-06-21 16:43:18 +02:00
Moriz Wahl
badaac8527 activate clean database again 2023-06-21 14:33:41 +02:00
Moriz Wahl
07d10c8e4c fix(backend): notifications 2023-06-21 14:29:56 +02:00
ec4eff86f7
remove activity pub middleware 2023-06-20 18:47:50 +02:00
Moriz Wahl
31d81aa2dd Merge branch 'master' into messages 2023-06-20 10:47:27 +02:00
Moriz Wahl
62b9b3c55a
Merge branch 'master' into rooms 2023-06-20 09:21:27 +02:00
df139c9937
use list comprehension instead of filter(not supported anymore in 4.4) 2023-06-16 15:34:27 +02:00
23c2be3093
Merge branch 'master' into update-database 2023-06-16 15:02:58 +02:00
Moriz Wahl
ae131cc656 add permissions for messages 2023-06-14 16:15:28 +02:00
Moriz Wahl
a51f357357 filter that only the rooms of the current user are returned 2023-06-14 15:00:23 +02:00
Moriz Wahl
d548fc2b84 simple create room mutation 2023-06-14 12:09:52 +02:00
73d0cc4a1c
fix several tests to fit typescript requirements 2023-06-13 14:07:59 +02:00
c436cb52b1
corrected file endings or removed them where possible 2023-06-12 14:26:52 +02:00
b1c3559806
middleware 2023-06-12 14:07:12 +02:00
ebddfa7df4
all files as .ts 2023-06-12 13:25:21 +02:00
Moriz Wahl
1d903798cd ensure that __typename of Post is a known value. labels(resource)[0] may return Article or Event in the case of Post 2023-06-08 16:01:27 +02:00
0c4b789da1
remove write rights where its not needed 2023-05-22 16:58:19 +02:00
Moriz Wahl
5f38c74d82 fix flaky test 2023-03-16 16:08:33 +01:00
Moriz Wahl
6adfac1c7b notify user when removed from group 2023-03-16 16:01:46 +01:00
Moriz Wahl
35f3da9984 notify user when role in group changed 2023-03-16 15:31:09 +01:00
Moriz Wahl
a25e6eb326 notify leave group 2023-03-16 15:09:19 +01:00
Moriz Wahl
997dff4dec add related user to notified model 2023-03-15 17:34:16 +01:00