Commit graph

40 commits

Author SHA1 Message Date
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
Alex Kirk
5f6cf78da1 Add a parser to the Friends Plugin 2022-11-09 07:08:32 -07:00
44c652eba8 phpcs fixes 2022-01-27 13:09:11 +01:00
f677d1a7d4 fix #135 2022-01-17 11:03:30 +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
d260d7c276 add support for custom post content
fix #97 #91
2020-07-21 09:23:35 +02:00
827aacc450 check params to prevent PHP warnings 2020-05-23 12:34:11 +02:00
41a58ccda5 show inline images
fix #77
2020-05-14 23:10:25 +02:00
f9223be5d7 fix some method names
and add basic tests
2020-05-14 22:33:09 +02:00
4798b75f37 more chances to support delete 2020-05-14 21:37:59 +02:00
c24966d683 first try of a delete activity
see #16
2020-05-14 18:02:49 +02:00
9945aa7cf8 escape global constants and functions
* Add leading \ before function invocation to speed up resolving.
* Add leading \ before constant invocation of internal constant to speed up resolving. Constant name match is case-sensitive, except for null, false and true.
2020-05-12 19:42:09 +02:00
ddabb0a0bf fix indents 2020-02-11 10:14:21 +01:00
9b894a7d14 use title instead of titlelink 2020-02-11 10:03:59 +01:00
bgcarlisle
d7a2b9a237 Added new post type: "title and link only" 2020-01-22 15:57:01 +01:00
Matthias Pfefferle
87aa2e1af1
Merge pull request #82 from BenLubar-PR/title
Use the "summary" property for a title as Mastodon does.
2020-01-19 16:21:22 +01:00
Ben Lubar
b4a79fd57e
Use the "summary" property for a title as Mastodon does. 2020-01-18 12:38:08 -06:00
Ben Lubar
f387177ebf
Add image alt text to the ActivityStreams attachment property in a format that Mastodon can read. 2020-01-18 12:36:46 -06:00
85db6f2d7e Automated native_function_invocation fixes
`php php-cs-fixer --rules=native_function_invocation fix ./ --allow-risky=yes`
2019-12-01 21:20:26 +01:00
65034d2a76 refactorings 2019-11-18 20:57:00 +01:00