Commit Graph

133 Commits

Author SHA1 Message Date
Julian Lam
adeaff4b82 feat: changes to how a topic is presented via ActivityPub; conformance with upcoming changes to 7888 2025-01-21 12:55:43 -05:00
Julian Lam
1d36ab6ddb fix: #12996, invalid title generation when remote post content has markdown source 2024-12-30 15:39:21 -05:00
Barış Soner Uşaklı
bb24e0ce15 change log 2024-12-25 14:58:07 -05:00
Julian Lam
e83036a959 feat: #12976, shares collection 2024-12-16 13:50:24 -05:00
Julian Lam
b15a684a92 fix: lemmy integration, handle image property as topic thumb 2024-12-12 11:37:22 -05:00
Julian Lam
b551abce59 fix: wrap try..catch around topics.reply in note assertion to output errors 2024-12-11 14:40:21 -05:00
Julian Lam
1839388b65 fix: persist sourceContent into post hash when ingesting remote posts, update markdown so that field is parsed instead of ignoring content 2024-12-03 11:59:55 -05:00
Julian Lam
55ab85ac0d fix: inability to directly post to a nodebb category from the fediverse 2024-11-18 14:23:59 -05:00
Julian Lam
7adc3140e2 fix: #12912, strip custom emoji from remote content titles 2024-11-14 15:08:30 -05:00
Julian Lam
b1d779ca6f fix: don't trust timestamps on received items
Trust the order you get from reply chain traversal and context retrieval instead.
2024-10-29 11:16:18 -04:00
Julian Lam
6f237c57cd feat: associate new topics created from asserted notes with their originating context, if that context is resolvable
re: #12647
2024-10-24 14:35:34 -04:00
Julian Lam
cac4f8e7d6 fix: inputIndex check 2024-10-18 11:15:53 -04:00
Julian Lam
a226ee9e91 fix: re-enable logging only for dev mode 2024-10-12 22:49:24 -04:00
Julian Lam
ca683c6d52 refactor: followers url filtering logic, #12834 2024-10-09 15:09:06 -04:00
Julian Lam
2464d13cde feat: notify users on new message from remote users, fix use of parseInt in generating chat notification
re: #12834
2024-10-09 13:51:41 -04:00
Julian Lam
0346e92bb2 fix: adjust timestamp after message creation instead of passing timestamp in, #12834 2024-10-08 23:51:41 -04:00
Julian Lam
22931be1cc fix: limited visibility remote posts with greater scope than asserted roomId should add those users to the chat room, #12834 2024-10-08 16:28:42 -04:00
Julian Lam
b82e20dfc7 feat: handle incoming non-public activities as chat message, #12834 2024-10-08 14:26:55 -04:00
Julian Lam
15f60b2497 fix: logic tweak 2024-10-01 10:17:08 -04:00
Julian Lam
903d038919 fix: fall back to inReplyTo traversal on context resolution failure 2024-10-01 10:08:19 -04:00
Julian Lam
f481cde1a8 fix: #12729, replies to existing topics from Pixelfed not asserting properly due to incorrect toPid
Pixelfed supplies an object _url_ instead of the expected _id_ in the `inReplyTo` field, and that tripped up NodeBB because we don't store a backreference for those.

The ideal solution here would be to set up a backreference for urls to pids, but in the meantime, this shortcut will function (it assumes that the object that it is in reply to is in the chain/context).
2024-08-13 11:12:48 -04:00
Julian Lam
95e6d2b43c fix: move topic reply call in notes.assert to its own line 2024-08-13 10:52:27 -04:00
Julian Lam
2ced350250 fix: bug that caused remote replies to other remote content to not always assert 2024-07-29 16:03:58 -04:00
Julian Lam
39f92eac16 refactor: store local follow backreferences for remote users (both followers and following), update actor pruning to take local follow counts into consideration, fixes #12701 2024-07-19 14:37:32 -04:00
Julian Lam
f9937a84c4 feat: additional logic to handle special case where a queried object id reports a context, but it is not actually contained in the resolved context's collection 2024-07-19 11:06:19 -04:00
Julian Lam
60408f2307 fix: incorrect parsing of context items during note assertion, logic error with slicing 2024-07-19 10:50:14 -04:00
Julian Lam
ff0c289e1d feat: #12695 Topic Synchronization via resolvable context
- Generation of a context collection digest via object ids
- Sending of said digest in ETag header
- Parsing of digests via If-None-Match header
- Update note assertion logic to handle 304 response
2024-07-16 11:37:38 -04:00
Julian Lam
46341673b3 fix: removal of topics from applicable user inboxes when synced
re: #12642
2024-07-05 12:00:23 -04:00
Julian Lam
2cbd63dc31 docs: update comment to reflect new behaviour 2024-07-05 11:09:42 -04:00
Julian Lam
cc0bbcb7bf fix: push instead of unshift, now that order is reversed 2024-06-28 16:28:34 -04:00
Julian Lam
e75ec39b70 feat: topic backfill logic via resolvable context #12647 2024-06-28 12:54:41 -04:00
Julian Lam
4dbb73a433 fix: remove duplicate 1b12 announce in notes.assert (already handled in inbox) 2024-06-26 14:32:48 -04:00
Julian Lam
a371c9fceb fix: regression that caused new notes to have undefined cid and fail privilege check 2024-06-25 11:04:45 -04:00
Julian Lam
89dd2fb04a fix: move call to retrieve cid followers out of loop 2024-06-25 11:04:45 -04:00
Barış Soner Uşaklı
c021e7e80f refactor: announces
store number of announces on post hash, show announces like votes, with tooltip and a way to see all, remove them from topic.events so they dont load all tid:<tid>:posts everytime topic is loaded
2024-06-17 11:18:48 -04:00
Julian Lam
6069bee019 chore: make getParentChain logging verbose 2024-06-14 13:26:56 -04:00
Julian Lam
1219d7d3b8 fix: minor adjustment in logic to work around relation logic 2024-06-14 10:20:53 -04:00
Barış Soner Uşaklı
839928b390 another one 2024-06-14 07:44:10 -04:00
Julian Lam
b6ffc47c5d feat: check to/cc/audience for local category and put topic there instead (overrides passed-in cid)
closes #12634
2024-06-13 17:06:58 -04:00
Julian Lam
acd1630b9f fix: move logic to move topic on note assertion earlier in the flow so it actually runs 2024-06-13 14:02:26 -04:00
Barış Soner Uşaklı
b2d03da96d refactor: dont need exist check, if post doesnt exist getPostData returns null 2024-06-12 16:04:14 -04:00
Opliko
42f514b793 feat: add timestamp to most activity ids 2024-06-11 22:55:45 +02:00
Julian Lam
bcfac00bec fix: unintentional parseInt during post purge 2024-06-10 12:30:48 -04:00
Julian Lam
6ecc791db9 fix: missing await on topic purge 2024-06-07 16:48:05 -04:00
Barış Soner Uşaklı
d1625d5fd2 refactor: change to info 2024-06-07 12:54:11 -04:00
Barış Soner Uşaklı
ba2d18418a refactor: comment out verbose logs 2024-06-07 11:56:58 -04:00
Julian Lam
709c91329a feat: pruning of stale notes older than 30 days with no engagement 2024-06-04 14:18:22 -04:00
Julian Lam
b5b89038ac fix: Notes.delete to delete announcer zsets too 2024-05-10 14:40:04 -04:00
Julian Lam
ccd187e000 feat: Note deletion logic and refactoring, #12551 2024-05-09 15:49:03 -04:00
Opliko
a7aeabc80d fix: ensure consistent return type from notes.assert
For fully cached topics it returned bare tid instead of a { tid, count } object.

Typescript would fix this btw :)
2024-05-07 10:40:47 +02:00