Wykres commitów

220 Commity (cd2947a72a63307482eee949ad93f44d75755128)

Autor SHA1 Wiadomość Data
Dario Piotrowicz 97530bbc7a handle spoiler text in the statuses ui
as part of this:
 - wire up spoilter_text in the backend so that frontend can use it
 - add spoiler_text to dummy data (+ related refactoring)
 - show spoilter text in the ui (+ related refactoring)
 - add/update e2e tests to check spoiler text
2023-02-17 23:05:45 +00:00
Celso Martinho 8712d5d503 Add tests 2023-02-17 18:25:19 +00:00
Celso Martinho 5986d6f9a4 /api/v1/statuses should be public for public statuses 2023-02-17 18:12:34 +00:00
Sven Sauleau dc70e1a1a9 migration: move following actors 2023-02-16 16:49:03 +00:00
Sven Sauleau 5867841881 Move activity; move followers 2023-02-16 11:39:49 +00:00
Sven Sauleau 22745197e2 oauth: get token support code in URL 2023-02-15 18:37:15 +00:00
Sven Sauleau b28a1ae878 endpoint for setting actor alias 2023-02-15 17:15:23 +00:00
Sven Sauleau 7e974f1fed fix tests 2023-02-15 16:40:29 +00:00
Sven Sauleau bd279cafff add CORS for 404 subscription 2023-02-15 15:36:04 +00:00
Sven Sauleau b9927c3dfe Add CORS header to NodeInfo endpoints
For elk compatibility.
2023-02-15 15:28:51 +00:00
Sven Sauleau d997d0ca06 subscription: make policy optional 2023-02-15 15:11:28 +00:00
Sven Sauleau e89ff9cd59
Merge pull request #286 from cloudflare/sven/fix-subscriptions-id
subscription: remove hardcoded and switch to Int
2023-02-15 12:15:44 +00:00
Sven Sauleau 8681d09d4f quickfix: stub some notification values 2023-02-15 12:02:41 +00:00
Sven Sauleau 39046061db subscription: remove hardcoded and switch to Int 2023-02-15 11:52:24 +00:00
Sven Sauleau 54c9a11e1a Make /api/v1/accounts/[id]/statuses public
The endpoint supports both authentificated and public access. At the
moment the connected user isn't used, we can just make the endpont
public.

Closes https://github.com/cloudflare/wildebeest/issues/275
2023-02-13 16:51:03 +00:00
Sven Sauleau 382c5dbbf9
Merge pull request #278 from cloudflare/sven/hotfix-post
make tag endpoint public
2023-02-13 16:18:39 +00:00
Sven Sauleau 3e716104d1 make tag endpoints public 2023-02-13 16:14:57 +00:00
Sven Sauleau 2a3e4b43fc
Merge pull request #276 from cloudflare/sven/timeline-tag
tag timeline
2023-02-13 16:00:26 +00:00
Sven Sauleau 1c813f9956 tag timeline 2023-02-13 15:56:31 +00:00
Sven Sauleau d8e99e871b
Merge pull request #273 from cloudflare/account-toots
show account posts in account page
2023-02-13 14:50:04 +00:00
Dario Piotrowicz 37bddfbe19 show account posts in account page 2023-02-13 14:24:53 +00:00
Sven Sauleau d8e22705e6 view single tag 2023-02-13 12:13:54 +00:00
Sven Sauleau 5110b4992a introduce basic for hashtag
This change detects hashtags in statuses and insert them into a new
table `note_hashtags`.
2023-02-13 11:37:35 +00:00
Sven Sauleau c38dde7efb
Merge pull request #271 from cloudflare/sven/catch-search-invalid-handles
handle invalid search query
2023-02-13 10:20:23 +00:00
Sven Sauleau 0223bf4981 handle invalid search query
Closes https://github.com/cloudflare/wildebeest/issues/257
2023-02-13 10:15:54 +00:00
Sven Sauleau adced26955 Disjoint Link from Object
Link was extending Object which was a mistake (as pointed out in
https://github.com/cloudflare/wildebeest/issues/35). This change
disjoints Link and Object objects, as specified by
https://www.w3.org/TR/activitystreams-vocabulary/#dfn-link.
2023-02-13 10:11:39 +00:00
Ikko Eltociear Ashimine 0585f5b11f
Fix typo in activitypub.spec.ts
existant -> existent
2023-02-13 00:31:46 +09:00
Jorge Caballero bc4d54f5cd
Merge branch 'cloudflare:main' into fix-missing-apps-verify_credentials-endpoint 2023-02-10 21:39:02 -08:00
DataDrivenMD f622c34891 Refactoring + expanding tests for /api/v1/apps 2023-02-10 15:10:10 -08:00
Brad Koehn cca63c9c6a
Merge branch 'cloudflare:main' into main 2023-02-10 09:59:54 -06:00
Brad Koehn aa618c39c8 allow various image types 2023-02-10 09:32:11 -06:00
Dario Piotrowicz a7568b73a9
Merge pull request #246 from cloudflare/seo-metadata
add title, description and seo metadata to various pages
2023-02-10 15:23:14 +00:00
Dario Piotrowicz e3271478e1 add title, description and seo metadata to various pages
resolves #218
2023-02-10 15:18:50 +00:00
Sven Sauleau e264982d27
Merge pull request #249 from cloudflare/improve-mentions
Improve mentions
2023-02-10 14:03:33 +00:00
Dario Piotrowicz 7d2ffc6a03 make enrishStatus mentions tests more robust and fix prefix issue 2023-02-10 13:20:29 +00:00
Dario Piotrowicz 561d5e03ca make enrichStatus accept mentioned with longer domain 2023-02-10 12:53:01 +00:00
Sven Sauleau 9c570a5b0f remove ruleset
ruleset are causing more issues than it's solving. Removing for now.
2023-02-10 10:27:43 +00:00
Sven Sauleau ff701bb05e Revert "adjust account urls"
This reverts commit c8e9f04b9b.
2023-02-09 17:24:01 +00:00
Sven Sauleau 3215097c5c Dedup Note in timelines by ObjectId 2023-02-09 15:22:04 +00:00
Sven Sauleau 3e7fa81cfa display image description 2023-02-09 14:53:03 +00:00
Sven Sauleau b01148c9b2 implement media update 2023-02-09 14:40:28 +00:00
Sven Sauleau 8ce71e007a MOW-143: handle missing avatar in notifications 2023-02-09 13:05:26 +00:00
Sven Sauleau e6617788c1 ensure the original Actor is deleting 2023-02-09 12:11:24 +00:00
Dario Piotrowicz 5366e8a5d7 improve links parsing 2023-02-08 19:37:47 +00:00
Sven Sauleau f7e31d8dd6
Merge pull request #224 from cloudflare/sven/fix-test2
Fix tests
2023-02-08 18:57:58 +00:00
Sven Sauleau 51fb115b79
Merge pull request #221 from cloudflare/account-href
adjust account urls
2023-02-08 18:56:57 +00:00
Sven Sauleau 56ebf6d688 Fix tests 2023-02-08 18:51:38 +00:00
Dario Piotrowicz c8e9f04b9b adjust account urls
resolves #216
2023-02-08 18:28:18 +00:00
Sven Sauleau 7c083b31bb fix: delete by original ObjectId 2023-02-08 18:03:11 +00:00
Sven Sauleau 13b827dcfa MOW-139: support federated Note deletion 2023-02-08 17:32:44 +00:00
Sven Sauleau bf26dcca14 MOW-135: prevent duplicated reblogs 2023-02-08 15:11:02 +00:00
Sven Sauleau 7cea876ed8 clarify UA used for federation 2023-02-07 16:05:56 +00:00
Sven Sauleau a177452778 regenerate the home timeline after status deletion 2023-02-07 14:43:27 +00:00
Sven Sauleau e13c0fb670 MOW-133: add idempotency for posting 2023-02-07 12:01:48 +00:00
Sven Sauleau 4485afbfe9 Deliver Delete activity to followers 2023-02-07 10:24:27 +00:00
Dario Piotrowicz 7c3353e90e handle sub-domains correctly in enrichStatus 2023-02-06 23:29:29 +00:00
Sven Sauleau 0a16029f38 various changes to status deletion 2023-02-06 19:50:44 +00:00
Sven Sauleau f0a6b695a6 MOW-126: basic local status deletion
This change deletes the Note from local object and Actor's
outbox tables.
2023-02-06 18:31:18 +00:00
Sven Sauleau bedd52e34f chunk queue.sendBatch
Queues are limited to 100 messages per batch.
2023-02-06 17:36:40 +00:00
Sven Sauleau 67f76d2a19 delivery user-agent and accept header
refs https://github.com/cloudflare/wildebeest/issues/80
2023-02-06 16:55:35 +00:00
Sven Sauleau bca11422b4
Merge pull request #197 from cloudflare/enrichStatus-regex-2
apply regexes to enrichStatus (again)
2023-02-06 14:59:22 +00:00
Sven Sauleau cd9551b58f MOW-132: redirect to /first-login for unkown user 2023-02-06 14:38:02 +00:00
Dario Piotrowicz c6a3da522b apply regexes to enrichStatus (again) 2023-02-06 12:20:04 +00:00
Sven Sauleau 460759787d fix tests 2023-02-06 11:51:05 +00:00
Sven Sauleau 33f6e30966 fix lint 2023-02-06 11:37:25 +00:00
Sven Sauleau b843eb8a62 add more mention tests 2023-02-06 11:35:08 +00:00
Sven Sauleau c9c87b4209 Revert "simplify enrichStatus method by using regexes"
This reverts commit 4644405add.
2023-02-06 11:35:08 +00:00
Sven Sauleau cd4a6429bf remove uneeded async closure 2023-02-03 16:53:38 +00:00
Dario Piotrowicz 6298220010 implement account page 2023-02-03 12:43:27 +00:00
Sven Sauleau 5929db73f8 MOW-130: NodeInfo 2.0 and 2.1
Closes https://github.com/cloudflare/wildebeest/issues/160
2023-02-03 11:57:52 +00:00
Sven Sauleau 0b4ce39873 Ignore unsupported Object updates 2023-02-03 11:28:30 +00:00
Sven Sauleau 646b83cf93 getAndCache Actor of any types
Closes https://github.com/cloudflare/wildebeest/issues/178
2023-02-03 11:14:10 +00:00
Sven Sauleau a122cb99af also log error.cause for D1 2023-02-02 16:48:49 +00:00
Sven Sauleau ef5848bb1d expose peers endpoint publicly 2023-02-02 16:19:50 +00:00
Sven Sauleau 39e76bfb48 MOW-128: collect and expose peers 2023-02-02 15:48:17 +00:00
Sven Sauleau e236855d71 move internal Object fields to symbols 2023-02-02 14:28:17 +00:00
Sven Sauleau 96d10a1afe
Merge pull request #174 from cloudflare/sven/fix-tag-as-mention
fix: switch Note tag as mentions
2023-02-02 11:28:52 +00:00
Sven Sauleau a11567df8e
Merge pull request #172 from cloudflare/regex-refactor
simplify enrichStatus method by using regexes
2023-02-02 11:26:01 +00:00
Sven Sauleau ddeadd0b67 fix: switch Note tag as mentions 2023-02-02 11:24:41 +00:00
Dario Piotrowicz 4644405add simplify enrichStatus method by using regexes 2023-02-01 22:27:39 +00:00
Sven Sauleau 95584c78a0 serve Object 2023-02-01 17:39:36 +00:00
Sven Sauleau 3b4cbcd575 Add `tag` on note 2023-02-01 17:08:29 +00:00
Sven Sauleau ea1e2c522d Enrich status with HTML Microformats 2023-02-01 16:09:20 +00:00
xmflsct 79c8c7e776 Add oauth state param 2023-02-01 00:05:24 +01:00
Sven Sauleau dea30c143c MOW-125: show non-public Notes sent to followers 2023-01-31 17:01:50 +00:00
Dario Piotrowicz 2cdb55ed0f improve image and video handling
by:
 - adding MediaGallery
 - adding missing controls to video element
 - renaming ImageGallery to Image
 - fixing video attachments not being correctly recognized
 - standardizing mastodon media_attachmen types in mock db init
2023-01-30 15:38:13 +00:00
Sven Sauleau 4d68c3b27d gh-86: implement authorization screen 2023-01-30 11:52:03 +00:00
Dario Piotrowicz ab43afea34 rename ambiguous Object to APObject 2023-01-24 13:40:26 +00:00
Dario Piotrowicz 67109a2601 implement createStatus to reduce code duplication 2023-01-23 21:31:48 +00:00
Dario Piotrowicz e6e59c7b5e implement createReply shared test util to reduce code duplication 2023-01-23 21:29:43 +00:00
Dario Piotrowicz 96c9242298 implement createReblog function to reduce reblog code duplication 2023-01-23 21:29:43 +00:00
Dario Piotrowicz c7978d4ea5
Merge pull request #75 from cloudflare/minor-backend-linting-improvements
improve be (+functions) linting
2023-01-23 11:42:57 +00:00
Dario Piotrowicz 3738c7dda1 improve be (+functions) linting:
- enable no-unsafe-call for be/functions linting
 - enable backend await-thenable eslint rule
 - enable backend no-misused-promises eslint rule
2023-01-23 11:38:16 +00:00
Sven Sauleau e00f05cdf2 MOW-100: protect first-login behind Access 2023-01-20 15:03:52 +00:00
Sven Sauleau 1e539df615 MOW-119: preserve attachement from remote statuses 2023-01-20 11:06:15 +00:00
Sven Sauleau 4a0d413c00 MOW-87: implement remote followers/following 2023-01-19 13:56:56 +00:00
Sven Sauleau a9d2b676fb handle 404 from DO cache 2023-01-19 09:20:47 +00:00
Sven Sauleau 9c11b74c2e MOW-118: switch from KV to DO for caching 2023-01-19 09:09:30 +00:00
Sven Sauleau 06975b8a5e Fix post status formdata 2023-01-18 14:40:09 +00:00
Sven Sauleau 736110c47e upload user content forwards request to Images 2023-01-18 13:47:52 +00:00