Commit Graph

789 Commits

Author SHA1 Message Date
Julian Lam
b8ef027cac fix: #14046, sneak in a mention to the community in mocked replies 2026-03-04 14:22:46 -05:00
Julian Lam
9e69b9ad2d fix: #13239, unescape custom user field values 2026-03-04 11:53:29 -05:00
Julian Lam
8a371d23ca fix: restore preview as it is now supported by BridyFed
https://bsky.brid.gy/internal/snarfed.org/2026-03-03_56661
2026-03-04 10:40:26 -05:00
Julian Lam
ca5aee10f2 feat: include alt text in image/attachment property federating out
closes #13124
2026-03-02 13:47:14 -05:00
Barış Soner Uşaklı
0bac703530 return early 2026-02-27 19:02:35 -05:00
Julian Lam
363cad293e fix: skip parsing of duplicate emoji tags 2026-02-27 14:54:58 -05:00
Barış Soner Uşaklı
fc4742387b lint: fix lint errors 2026-02-27 12:41:40 -05:00
Julian Lam
6472462924 fix: remove allowed check from notes.assert as it is already done downstream in topics.(post|reply), update privilege check to inherit world privs if passed-in cid is remote cid 2026-02-26 22:40:19 -05:00
Julian Lam
6a0663cdd0 fix: guard against crash when malformed URL present in deliverees 2026-02-26 15:57:16 -05:00
Julian Lam
29111ba7ca fix: allow break string and summary limits to be defined and applied 2026-02-26 15:43:09 -05:00
Barış Uşaklı
e4c945f636 refactor: allow passing an array to topics.purge and topics.purgePost… (#14018)
* refactor: allow passing an array to topics.purge and topics.purgePostsAndTopic

deprecate action:topic.purge, add action:topics.purge with array of deleted topics
update usage of topics.purge to pass in an array
fix an issue in posts/delete where cids were passed to parseInt, caused AP cids to get saved into category:NaN

* lint

* refactor: change style

* use array of tids
2026-02-26 13:09:42 -05:00
Julian Lam
cd357aaff5 feat: support the magic break string '[...]' in content, such that if found, outbound federation will use all content up to (and including) that string in its summary 2026-02-25 16:05:29 -05:00
Julian Lam
bf0f522818 feat: add a '[...]' to the end of the generated summary when federating out articles (fep-b2b8) 2026-02-25 12:38:42 -05:00
Julian Lam
3177369449 fix: remove preview in mocked note for now, due to lack of support (fep-b2b8) 2026-02-25 12:38:42 -05:00
Barış Soner Uşaklı
8fb3ad8a87 lower categoy prune 2026-02-24 19:50:20 -05:00
Barış Soner Uşaklı
1c0d10a616 less logs 2026-02-23 21:18:14 -05:00
Barış Soner Uşaklı
aaa6d0685e fix flat, add last info 2026-02-23 21:16:57 -05:00
Barış Soner Uşaklı
3431589b24 parseInt cid 2026-02-23 21:02:28 -05:00
Barış Soner Uşaklı
20eb02f158 feat: prune topics remote cids, closes #13461 2026-02-23 21:01:19 -05:00
Julian Lam
80f6102224 fix: #14001, regression from adjusted acceptable types list 2026-02-18 11:14:16 -05:00
Julian Lam
9fbdc79202 fix: don't publish name on generated titles 2026-02-18 10:26:47 -05:00
Barış Soner Uşaklı
4b9b3648c1 fix: #13894, buildCategoryLabel helper checks fa-nbb-none 2026-02-12 18:10:19 -05:00
Julian Lam
fd43368a92 feat: allow re-ordering of auto-categorization rules 2026-02-11 12:54:03 -05:00
Barış Soner Uşaklı
1747cf8186 lint: remove unused regex 2026-02-11 12:37:19 -05:00
Julian Lam
9608cce693 refactor: emoji replacement code into helper function, remove use of regex on untrusted user input 2026-02-11 11:50:27 -05:00
Barış Uşaklı
62d88555ae feat: eslint10 (#13967)
* feat: eslint10

* lint: no-useless-assignment
2026-02-10 12:39:11 -05:00
Julian Lam
13422bc822 fix: guard against incomplete objects when building context/chain 2026-02-06 14:45:27 -05:00
Julian Lam
0fbaa937e4 Refactor /world page, closes #13927 (#13954)
* refactor: wholesale UI/data refactor of world to display in feed-like format

* fix: openapi schema

* fix: remove console log

* fix: restrict 'generatedTitle' from being passed-in via topics API

* fix(deps): bumping themes for world refactor support

* fix: /world title and description update

* fix: missing handleIgnoreWatch in world client side js
2026-02-06 14:07:25 -05:00
Barış Soner Uşaklı
ff1376b37e refactor: remove log 2026-02-04 09:47:14 -05:00
Barış Soner Uşaklı
065abbf249 refactor: get rid of cache for tid posters, was never cleared 2026-02-03 20:20:30 -05:00
Barış Soner Uşaklı
fe081ebd7b Merge branch 'master' into develop 2026-01-23 12:35:35 -05:00
Julian Lam
69c5f94193 fix: proper attachment generation on replies, fixed replies getting thumb attachment when it wasn't part of it 2026-01-23 11:35:32 -05:00
Julian Lam
ad27347fa2 fix: update buildRecipents to add option to skip target creation step, update ap actors for note to not bother building targets 2026-01-21 14:43:31 -05:00
Julian Lam
fac3185974 refactor: Actors.getLocalFollowers to Actors.getFollowers, can pass in both local and remote ids 2026-01-21 14:42:16 -05:00
Julian Lam
eb27b96430 fix: notes announce cache, use cache when retrieving tid posters 2026-01-21 12:53:41 -05:00
Julian Lam
e697d600d1 fix: optimizations
- plugins.isActive response now cached in nconf
- public addresses filtered out of actor assertion logic during
  qualification stage
- bump mentions to fix db call with empty values
- update buildRecipients to exclude public addresses and local URIs when
  building targeting array
2026-01-21 12:07:00 -05:00
Julian Lam
f9affbad58 fix: cache detection logic in context parseItem executing earlier than needed causing false positives 2026-01-21 10:51:15 -05:00
Barış Soner Uşaklı
ec4e7ef1b7 fix: closes #13199 normalize accept header
@julianlam tried accepts module ran into issues when the route was requested via browser or via $.ajax with the default headers,
for example accepts(req).type(activitypub._constants.acceptableTypes) still returns true when /post/123 is loaded via browser or via $.ajax
2026-01-20 22:19:22 -05:00
Julian Lam
428b6e730a fix: replace attachment generation logic in notes.public
Previously, the logic retrieved the list of uploads, checked if they
were thumbs, and set attachment (and noteAttachment) depending on object
type. It was complicated and didn't really work so well, so I simplified
it.

Now thumbs.get is called, and attachment is appended with all thumbs and
uploads. Sizing is not provided. Maybe later. Image is also now set,
which is the first image in attachment.
2026-01-19 21:38:48 -05:00
Julian Lam
6383bb58e9 fix: #13900, assertion re-index 2026-01-19 14:50:57 -05:00
Julian Lam
39582cbd02 fix: simplicity tweak 2026-01-19 14:44:22 -05:00
Julian Lam
560ad81f32 feat: remote account banning, #13904 2026-01-19 14:42:13 -05:00
Julian Lam
33c2de9c5b feat: opportunistic backfill, #13895 2026-01-16 15:12:24 -05:00
Julian Lam
4bab9fb446 fix: export sendMessage as _sendMessage for use in ap jobs lib 2026-01-16 15:12:24 -05:00
Julian Lam
c595edb4c0 refactor: move ap jobs to its own file 2026-01-16 15:12:24 -05:00
Julian Lam
98c0a3fedc fix: #13892, logical flaw 2026-01-14 14:18:20 -05:00
Julian Lam
8b7d350e0a fix: #13892, logical flaw 2026-01-14 14:18:02 -05:00
Julian Lam
6eea4df5ef fix: #13888, decode html entities for AP category name and description 2026-01-13 10:36:03 -05:00
Julian Lam
b9b33f9f8d fix: unused values 2026-01-12 12:55:18 -05:00
Julian Lam
add163a42d test: ensure auto-cat and cat sync logic properly integrates with crossposts 2026-01-12 12:55:18 -05:00