121 Commits

Author SHA1 Message Date
Matt Baer
cc75be1eb5 Rename Letters [letters] config section to Email [email] 2023-09-25 14:26:41 -04:00
Matt Baer
06968e7341 Merge branch 'develop' into letters 2023-09-25 13:59:46 -04:00
Matt Baer
36f4e30595
Merge pull request #729 from testwill/fmt
chore: unnecessary use of fmt.Sprintf
2023-09-22 13:01:15 -04:00
Matt Baer
efe669b874 Remove redundant query on post pages
Previously, we'd call GetCollectionAttribute for the monetization
attribute, when it's already in the collection data.
2023-09-22 11:58:11 -04:00
Matt Baer
aa72bcba50 Fix funky comment after gofmt in posts.go 2023-09-22 11:53:57 -04:00
Matt Baer
8626aa12cc Fix post page rendering after rel=me changes
Ref T744
2023-09-22 11:52:14 -04:00
Matt Baer
8f03da0ec1 Correctly respond to application/ld+json requests
This returns ActivityStreams objects when the Accept header is
`application/ld+json; profile="https://www.w3.org/ns/activitystreams"`,
per the ActivityPub spec.

Fixes #564
2023-09-21 16:16:57 -04:00
guoguangwu
20fec65e6b chore: unnecessary use of fmt.Sprintf 2023-07-11 12:10:40 +08:00
Matt Baer
118eb732f4 Merge branch 'develop' into letters 2023-01-08 11:49:57 -05:00
Matt Baer
d08f067e9c Change copyright notices to Musing Studio LLC
A Bunch Tell is now Musing Studio.
2022-11-10 23:49:16 -05:00
Matt Baer
69ab0d34e0 Elide Markdown when generating slug
This makes sure e.g. link URLs and image alt text don't get included
in the slug.

Ref T329
2021-12-21 13:55:10 -05:00
Matt Baer
2288ccf2a2 Merge branch 'develop' into letters 2021-08-10 17:47:23 -04:00
Matt Baer
fbb3000e4d
Merge pull request #476 from writefreely/strip-image-alt-meta
Don't include img alt text in post Summary()
2021-06-28 15:47:42 -04:00
Matt Baer
720a8c1975 Don't include img alt text in post Summary()
Fixes #306
2021-06-25 11:16:03 -04:00
Matt Baer
e91ffe2dcb Remove additional slash in /feed/ redirect 2021-06-23 16:50:23 -04:00
Matt Baer
2ea235f0c4 Support email subscriptions (base)
This adds beginning email subscription functionality, with only MySQL support,
Mailgun support, and incomplete support for private instances. It includes
database changes, so run:

    writefreely db migrate

to use this feature.

Ref T856
2021-06-21 18:24:40 -04:00
Matt Baer
c05f7056c4 Fix collection rendering in Chorus mode 2021-06-09 10:04:28 -04:00
Matt Baer
e42ba392c6 Support Web Monetized split content
Ref T770
2021-06-07 15:52:24 -04:00
Matt Baer
6740fbe097 Support publishing title-only posts 2021-05-25 17:04:17 -04:00
Matt Baer
b010484493 Return url of new post on publish 2021-05-20 20:44:59 -04:00
Colin Axnér
8ac2d0b310 merge develop 2021-04-07 18:33:02 +02:00
Matt Baer
484d2736ce Update repo URL to writefreely org
From the writeas org on GitHub.
2021-04-06 17:24:07 -04:00
Matt Baer
4a58a94e26 Include images as attachments in ActivityStreams data
Ref T709
2021-03-24 16:00:52 -04:00
Colin Axnér
f2e3cd8bd7 merge develop 2021-03-08 11:42:00 +01:00
Matt Baer
1f6d0e2e70 Merge branch 'develop' into support-notes 2021-03-04 11:42:49 -05:00
Matt Baer
bb008aa66c
Merge pull request #382 from Antolius/fix-post-summary-escaping
Fix escaping in post summary
2020-10-13 08:41:25 -04:00
Colin Axner
5ba0ea2b04 fix accessibility of silenced user posts
Change view post collection queries to verify that the authenticated user of a silenced collection is either the owner or admin
2020-09-17 12:50:06 +02:00
Josip Antoliš
eb76faa129 Fix escaping in post summary
Unescaping post content after sanitizing it. This will prevent double
escaping when summary is rendered by html/template package which does
escaping by default.
Fixes #340
2020-09-05 01:59:44 +02:00
Matt Baer
f821ead3a1 Support only federating Notes
When setting `notes_only = true` in the `[app]` configuration section, WF will only send out `Note` objects. Otherwise, it will send out both `Note`s and `Article`s.
2020-09-02 10:36:00 -04:00
Matt Baer
8be71481c8 Merge branch 'develop' into support-notes 2020-09-02 10:29:59 -04:00
Matt Baer
13eb51913e Support Web Monetization via backend attribute
This supports a new `monetization_pointer` collection attribute.
When present, we include the `monetization` meta tag on all
collection pages.
2020-08-19 09:28:44 -04:00
Matt Baer
849e5b8503
Merge pull request #330 from writeas/post-signatures
Support post signatures

Ref T582
2020-07-30 11:53:27 -04:00
Matt Baer
a25664bb97 Support post signatures
This enables users to add a signature to all blog posts, and update it from a single location.

Requires database migration with: writefreely db migrate

Closes T582
2020-06-23 16:24:45 -04:00
Matt Baer
9624c4db00 Show warning in editor when local draft is out of date
Fixes #41
2020-06-11 11:45:12 -04:00
Matt Baer
f9cd87ae3a Log handle on GetProfilePageFromHandle err 2020-03-19 13:43:07 -04:00
Matt Baer
ac522ed600 Reuse mention regex
This makes the app less error-prone by avoiding a regexp.MustCompile()
call in the ActivityObject() method, saves CPU work, and reuses code.
2020-03-17 13:43:25 -04:00
Matt Baer
97aec9c158 Fix error / info logging around AP mentions
This fixes log formatting and makes verbiage consistent & concise.
2020-03-17 13:42:51 -04:00
Matt Baer
a9bed9fea9 Prevent nil pointer panic from ActivityObject() method
Previously, we might potentially return a nil activitystreams.Object,
which would crash the app. This fixes that.
2020-03-17 13:14:29 -04:00
Matt Baer
563ea5b25b Fix image extraction for URLs with query strings
Previously, image extraction wouldn't catch images with a query string
(or anything else) appended. This fixes that by parsing extracted URLs
and only checking the path for what looks like an image file.
2020-02-19 17:07:02 -05:00
Matt Baer
34d196376e Include extracted images in draft social metadata
Previously, we didn't extract images for draft posts. This fixes that.
2020-02-19 16:38:50 -05:00
Matt Baer
7023b74d12 Update calls and vars for Invites and elsewhere
Ref T661
2020-02-09 11:24:48 -05:00
Matt Baer
468bbf2187 Merge branch 'develop' into rename-account-suspend 2020-02-09 11:14:14 -05:00
Matt Baer
bb63e64883 Clean up getProfilePageFromHandle
- Export the func
- Remove commented-out code
- Use log, not fmt for debug messages
- Remove named return parameters
- Use standard var naming schemes
- Fix spacing in queries and remove unnecessary chars
2020-02-08 12:10:47 -05:00
Matt Baer
68d63d3fef Merge branch 'develop' into activitypub-mentions 2020-02-08 11:51:18 -05:00
Matt Baer
1fd4230267
Merge pull request #248 from writeas/fix-drafts-html-entities
A minor Drafts page fix + improvement
2020-02-05 12:26:42 +01:00
Matt Baer
ff33c59f27
Merge pull request #180 from writeas/cache-control
Add Cache-Control headers on AP endpoints

Closes T693
2020-01-31 12:00:47 +01:00
Matt Baer
b336e95e12 Render HTML entities in Drafts list
Previously, we'd show the raw HTML entities in the summaries of Draft
posts, instead of rendering them. This fixes that.
2020-01-20 15:20:45 -05:00
Matt Baer
9958a1122b Show published date on post pages if Blog
Dates now display on blog post pages if the collection's chosen display
format is "Blog". It updates the chorus-collection-post template to now
respect this value (previously, it always showed the date).

Ref T669
2020-01-09 16:50:02 -05:00
Matt Baer
8dc1ef0fdb
Merge pull request #215 from writeas/prevent-fail-on-suspend-check
Prevent failed requests on failed user silence check
2019-12-17 21:12:58 -05:00
Matt Baer
6afafa4d67 Fix whitespace 2019-12-17 21:10:39 -05:00