Django Doucet
7e6c112679
Merge branch 'master' into Comments
2023-02-05 22:05:30 -07:00
Matthias Pfefferle
70859212d6
fix #196
2023-02-02 08:50:17 +01:00
Matthias Pfefferle
531bdc17b0
fix #266
2023-02-02 08:18:10 +01:00
Django Doucet
f9c0edc681
Merge branch 'master' into Comments
2023-01-28 12:50:07 -07:00
Alex Kirk
483e0a85b2
Extract mentions from the unmodified post content.
2023-01-27 15:48:28 +01:00
Alex Kirk
e065880085
Add ActivityPub mentions
2023-01-27 15:48:28 +01:00
Alex Kirk
6b8fb5af0c
Fix accessing post properties
2023-01-27 14:28:56 +01:00
Matthias Pfefferle
dbaddd9189
Simplified and optimized code
...
based on the Shortcode changes
2023-01-27 10:21:51 +01:00
Matthias Pfefferle
281ed2a8c2
remove old shortcode code
2023-01-23 23:51:27 +01:00
Matthias Pfefferle
7be74c1837
fix upgrade call
2023-01-23 21:24:54 +01:00
Matthias Pfefferle
4d75ade22b
strong is not supported
2023-01-23 21:08:59 +01:00
Matthias Pfefferle
c93f02615d
always escape output
2023-01-23 20:59:39 +01:00
Matthias Pfefferle
cb1c26a365
use static method to upgrade post content to shortcodes
2023-01-23 20:31:14 +01:00
Matthias Pfefferle
b458cc6b88
coding standard
2023-01-23 20:13:56 +01:00
Matthias Pfefferle
aec21a489c
coding standards
2023-01-23 19:43:34 +01:00
Greg
71f3a47589
Converted shortcode class to static.
...
And added options for shortlink/permalink type.
2023-01-23 11:59:13 -05:00
Greg
3a82891948
Minor cleanups.
2023-01-22 11:27:13 -05:00
Greg
b5fa16b464
Move the shortcodes to their own class.
2023-01-22 01:13:46 -05:00
Greg Ross
621911d1bf
Merge branch 'pfefferle:master' into switch-to-shortcodes
2023-01-22 00:36:06 -05:00
Greg
bc8e46e121
Fix shortcode output.
2023-01-16 12:51:18 -05:00
Greg
4a17bb4ea7
Separate the shortcode upgrade function and call it in the settings.
2023-01-16 10:27:27 -05:00
Greg
caea1ecbed
Make sure we have a post before using it to set class variables with.
2023-01-16 10:26:38 -05:00
Matthias Pfefferle
2f0dbde2a4
fix phpcs issues
2023-01-16 15:28:10 +01:00
Matthias Pfefferle
5118f00a1e
Merge pull request #247 from toolstack/fix-the-excerpt
...
Make the excerpt code actually crop the excerpt at 400 characters.
2023-01-16 15:04:47 +01:00
Greg
bf6cf24b17
Add length to excerpt shortcode.
2023-01-13 16:11:52 -05:00
Greg
e7d3cf9d68
Convert template codes to shortcodes.
...
As well as add new shortcodes for:
[ap_hashcats] - The post's categories as hashtags
[ap_image] - The URL for the post's featured image, full size
[ap_thumbnail] - The URL for the post's featured image thumbnail size
[ap_author] - The author's name
[ap_authorurl] - The URL to the author's profile page
[ap_date] - The post's date
[ap_time] - The post's time
[ap_datetime] - The post's date/time formated as "date @ time"
[ap_blogurl] - The URL to the site
[ap_blogname] - The name of the site
[ap_blogdesc] - The description of the site
2023-01-13 15:47:13 -05:00
Greg
27aeaeb4e4
Fix incorrect setting of target length and spelling mistake.
2023-01-13 11:02:16 -05:00
Matthias Pfefferle
c7044f7ede
Merge pull request #248 from mexon/configure-number-of-images
...
configuration item for number of images to attach
2023-01-13 08:58:45 +01:00
Matthias Pfefferle
c06a7d44cf
re-added max_images check
...
props @mexon
2023-01-12 22:21:48 +01:00
Matthias Pfefferle
6992fbbe22
simplified ACTIVITYPUB_MAX_IMAGE_ATTACHMENTS
2023-01-12 21:55:33 +01:00
Matthew Exon
1e7e6bba28
standardise and improve name of attachment setting
2023-01-12 21:29:21 +01:00
Matthew Exon
d1765b56dd
configuration item for number of images to attach
2023-01-07 17:58:50 +01:00
Greg
43f347bc7c
Make the excerpt code actually crop the excerpt at 400 characters.
...
The existing implementation crops at words and may return very short strings based upon filters, or very long strings based upon user inputted excerpts.
Make sure we never return a excerpt longer than we expect.
2023-01-06 20:04:31 -05:00
Matthias Pfefferle
a548d1fe0f
get_post_meta need the post ID
2022-12-27 16:58:49 +01:00
Matthias Pfefferle
6878b86922
fix test
2022-12-27 15:56:46 +01:00
Matthias Pfefferle
c221daef86
store permalink in post meta for trashed posts
...
this should quick fix #16 without changing the permalink structure
2022-12-27 15:48:14 +01:00
Django Doucet
8cce944edd
Post class fix attributes
2022-12-19 14:16:54 -07:00
Django Doucet
f87dbd87be
replace ap_comment_id to reuse replytocom var
2022-12-19 14:16:54 -07:00
Django Doucet
852634360b
style fix
2022-12-19 14:16:53 -07:00
Django Doucet
6a69a40295
Fix announce, clarified language
2022-12-19 14:16:53 -07:00
Django Doucet
5d8e3a9ba9
Migrate / Update script
2022-12-19 14:09:55 -07:00
Django Doucet
e5080f8693
code standards cleanup
2022-12-19 14:09:55 -07:00
Django Doucet
8e1c9ff6bb
Replies Collection, settings, other fixes
2022-12-19 14:09:54 -07:00
Django Doucet
51643142aa
coding standards
2022-12-19 14:09:54 -07:00
Django Doucet
8938c67073
Comments update
2022-12-19 14:09:53 -07:00
6772d300b4
phpcs fixes
2022-12-19 14:09:53 -07:00
44c652eba8
phpcs fixes
2022-01-27 13:09:11 +01:00
0ac4bb0d8f
fix inconsistent %tags%
placeholder
2020-12-17 22:21:41 +01:00
0fcc57ee04
fix hashtags replacement
2020-12-17 18:24:30 +01:00
Django Doucet
880073de69
Fix post date
2020-12-17 00:26:59 -05:00