1
0
Fork 0
Commit graph

530 commits

Author SHA1 Message Date
e9fe92a5d7 Merge remote-tracking branch 'upstream/develop' into api-again 2021-05-11 21:21:32 +00:00
cac038639d Capitalize post action translation strings 2021-05-11 16:01:07 -04:00
bade0a2345 Improved cards handling, simplified Bearer handling 2021-05-11 19:15:05 +00:00
82003bbe47 Login prototype 2021-05-11 06:30:20 +00:00
7789ea2507
Merge pull request #10228 from MrPetovan/bug/warnings
[PHP 8] Fix undefined template variables
2021-05-11 06:10:29 +02:00
10e5630988 Don't assume $a->contact is populated in Object\Post::getCommentBox
- Address https://github.com/friendica/friendica/issues/10167#issuecomment-837238584
- This might reveal some side-effect
2021-05-10 22:03:51 -04:00
9ef9fc7c14 Skip URL-less mention terms in Object\Post::getDefaultText
- Address https://github.com/friendica/friendica/issues/10167#issuecomment-830859710
- Added logging to troubleshoot deeper issue
2021-05-10 21:50:42 -04:00
2c6bf754d5 Fix undefined variables in wall_thread.tpl
- Remove unused "num_comments_text" template variable
- Remove unused "item.postops" template variable mention
2021-05-10 18:59:09 -04:00
585d283ff9 Preparation for Oauth client registration 2021-05-09 22:23:21 +00:00
7a576111c7 Code styling 2021-05-09 11:56:34 +00:00
cc5d4db6a3 Notifications are now supported as well 2021-05-09 11:50:05 +00:00
5bb5c44bd9 API: added account related endpoints 2021-05-09 09:35:51 +00:00
98c2ca34f5 Remove block/ignore links from contact/item action menus for self 2021-05-04 08:45:27 -04:00
238adabefb Catch Imagick errors
See https://github.com/friendica/friendica/issues/9747#issuecomment-809675750
2021-04-12 12:37:11 +00:00
Balázs Úr
054c301ef0 Update copyright 2021-03-29 08:40:20 +02:00
e98d11a9ae Limit the size of contact avatars 2021-03-26 06:56:08 +00:00
5bbcb8bdf4 ActivityPub: Delete Comments 2021-03-24 22:22:14 +00:00
e6f4ed47e2 Avoid error "Uncaught ImagickException: Unable to scale image" 2021-03-23 20:01:32 +00:00
2bbfbd57b0 Only offer "ignore thread" when there is a need for this 2021-02-28 11:20:02 +00:00
312c01a517 Several speed improvements (magiclink, caching, indexes) 2021-02-17 18:59:19 +00:00
890d1057d2 No implicit mention for top level Diaspora comments 2021-02-16 07:20:41 +00:00
c1d99d6c4c Most user-item traces removed 2021-01-31 23:37:34 +00:00
Michael Vogel
199f72ee3c
Merge pull request #9823 from MrPetovan/task/9677-2fa-remember-device
Add "Remember this device" feature to two factor authentication
2021-01-27 22:32:08 +01:00
ef0400fc19 "uri-id" instead of "uri" or "id" 2021-01-27 10:01:42 +00:00
82e094179c Rename notify classes according the feature name, not the table name 2021-01-24 09:33:23 -05:00
0fc5f26ff7 Replace BaseEntity with BaseDataTransferObject class for API representation classes 2021-01-23 05:42:58 -05:00
6b0df74ed7 Add blocking author from an item context feature 2021-01-23 05:30:03 -05:00
b892db0cf3 All item selects are now done by the post class 2021-01-19 07:23:01 +00:00
4157db5473 "item" is replaced by "post-view" / postupdate check added 2021-01-17 20:32:13 +00:00
e68f7444ed
Improve class alias naming in Object\Post 2021-01-16 08:12:41 -05:00
2fa692bcce New post class in the rest of the classes 2021-01-16 04:16:09 +00:00
c8604895c4 [frio] Add share dropdown to mobile post view
- This should prevent accidental taps from resharing content unwittingly
2021-01-07 10:13:40 -05:00
8b3ab4e6bb Refactor builtin_activity_puller() and format_like()
- Simplify output array
- Rename format_like() to format_activity()
- Remove duplicate parameters in format_activity()
2020-11-21 11:08:44 -05:00
ba4685dfb1 API: Support for reshared items 2020-11-01 11:01:57 +00:00
c030275815 API: accounts and trends 2020-10-31 22:32:26 +00:00
752f5b09d7 Use the raw body if not null 2020-10-31 16:32:41 +00:00
e6030e5f82 API: Media attachments are now supported 2020-10-31 16:10:27 +00:00
a012234d82 Publish the provider fields in the API 2020-10-26 19:40:09 +00:00
44a4b66539 Improved self contact detection 2020-10-25 20:40:25 +00:00
d8d96e6e61 Display the user fields for the admin account 2020-10-25 20:32:45 +00:00
463f8ee3f3 Use lowercase for tags 2020-10-25 17:59:28 +00:00
825189e8e9 Don't publish some fields 2020-10-25 17:42:42 +00:00
72efcc8169 "locked" is boolean 2020-10-25 16:59:38 +00:00
13b14bff91 Return 'null' on empty card 2020-10-25 16:55:05 +00:00
efcd76d3a7 Spaces to tabs 2020-10-25 16:26:47 +00:00
a643888aeb More data for the Mastodon status class 2020-10-25 16:13:31 +00:00
Michael Vogel
4f6bf9e518
Update src/Object/Post.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-10-12 03:58:56 +02:00
a173bf8eab Diaspora: Native reshares only work with toplevel posts 2020-10-11 21:45:49 +00:00
dbdc8c91f6 Diaspora announce / Renaming share buttons 2020-10-11 19:58:28 +00:00
7c5aa0bbf1 "announce" is activated for Twitter as well 2020-10-11 12:27:19 +00:00
d3e19bc880 Support for real reshares 2020-10-11 08:49:47 +00:00
b6b28b1541 Display the languages in the post 2020-10-04 18:52:28 +00:00
2c1e9b92eb Fix fatal error: Uncaught ImagickException: cache resources exhausted 2020-10-02 20:58:14 +00:00
8318a0b640
Move ExAuth, FKOAuth1 & FKOAuthDataStore to own namespace Friendica\Security 2020-09-30 11:14:01 +02:00
30bc65e81e
Remove whitespace before ":" of mail headers 2020-09-28 19:22:29 +02:00
b1a402a787
Fix newline email error 2020-09-22 21:08:36 +02:00
6c7bce86fe Avoid fatal error on the community page 2020-09-20 17:37:09 +00:00
722aada460
Merge pull request #9242 from nupplaphil/bug/9142-message-id
Transform email header string to header array
2020-09-19 22:10:20 -04:00
ac1d2cf38f
Transform email header string to header array & replace it at various situations. 2020-09-19 20:16:55 +02:00
76d6962129 Remove superfluous variable in item template variables 2020-09-13 20:01:54 -04:00
3fa3e78844 Normalize item like/dislike template variable name 2020-09-13 20:01:54 -04:00
8d5eb61ea3 Normalize item comment template variable name 2020-09-13 20:01:54 -04:00
65b796ed1f Normalize item_photo_menu template variable name 2020-09-13 20:01:53 -04:00
2bfd53bf09 Normalize item body template variable name 2020-09-13 20:01:53 -04:00
9ff228812f Normalize item location template variable name 2020-09-13 20:01:51 -04:00
61014feec3
Fix ContactEndpoint & tests 2020-09-12 10:01:13 +02:00
4065f71382 Fix qcomment addon
- Initialize $qcomment template variable everywhere it is expected
- Remove addon Javascript from core head template
2020-09-09 16:49:03 -04:00
206caaf51a Reshared data now is a link 2020-09-09 04:49:42 +00:00
42dcd6646e Issue 9135: Display only reshared posts at the top 2020-09-08 22:06:10 +00:00
e45ccea0f2 Tabs instead of spaces 2020-09-08 01:45:59 +00:00
24f1bb4ea1 Class file renamed 2020-09-08 01:44:49 +00:00
Michael Vogel
2bb725fa30
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-09-08 03:39:51 +02:00
59374eb6c6 Use "StatusCounts" class 2020-09-07 18:24:11 +00:00
1bca280eae StdClass instead of arrays 2020-09-07 14:34:05 +00:00
db6282b5e2 API: Counts added, local query improved 2020-09-06 07:12:04 +00:00
90dc60cee7 Replace spaces with tabs 2020-09-03 19:24:30 +00:00
0de372aceb Space replaced 2020-09-03 19:16:42 +00:00
305fe62659 Content is now filled 2020-09-03 19:13:03 +00:00
cd3d4ae4e6 API: New entity "status" 2020-09-03 18:57:18 +00:00
8402450101 Always use the oldest creation data 2020-09-02 04:17:13 +00:00
cbf1e5c699 New field "manually-approve" for contact table 2020-09-02 03:02:50 +00:00
ca9f916ecd Removed comment 2020-09-02 01:45:45 +00:00
7b903e1ca8 The account fields are rearrange to match Mastodon 2020-09-01 20:59:50 +00:00
0e4d3fe9e5 Display a symbol when a post had been reshared 2020-08-23 13:26:23 +00:00
dd82f150ca Rework of the network page 2020-08-13 20:07:13 +00:00
71b6226909 Some more avatar function replacements 2020-07-28 19:30:55 +00:00
afb882048e Generate callstack value from inside Profiler::saveTimestamp
- Save a massive amount of time computing callstacks when profiling is disabled
2020-07-27 02:33:05 -04:00
5bf813d0ec Use "failed" field 2020-07-19 11:42:23 +00:00
fc0312451d Changed parameter order for getByURL 2020-07-15 17:06:48 +00:00
d9c6a46ffe Replaced "getDetailsByURL" with "getByURL/getByURLForUser" 2020-07-15 04:42:04 +00:00
c947b7f211 "print_r" in logging replaced / obsolete stuff removed 2020-06-29 20:22:00 +00:00
173264eaab Add Twitter User Object and Factory 2020-06-08 21:51:42 -04:00
Michael Vogel
235f4eaa89
Merge pull request #8697 from MrPetovan/task/8691-like-links-one-way
Make like links one way
2020-05-29 15:33:24 +02:00
e20d5ff0b5 Fix the event feature disabling logic in Object\Post
- Conditions on item network and dislike feature presence were mixed which could have led to unexpected behaviors
2020-05-27 08:41:12 -04:00
973abb6196 Replace "id = parent" checks with "gravity" checks 2020-05-27 12:19:06 +00:00
3b2ae5c4a9 function names changed 2020-05-01 06:01:22 +00:00
5df5e9521b The tag table is now really used 2020-04-26 15:24:58 +00:00
d3722c945b Improved Mime Type detection 2020-04-01 05:42:44 +00:00
d63e903d9f Changed template for direction 2020-03-03 21:29:51 +00:00
72c198990e Merge remote-tracking branch 'upstream/develop' into private 2020-03-02 15:05:00 +00:00
ca1b92bb34 Support unlisted public posts 2020-03-02 07:57:23 +00:00
452d7e6404 Remove unused conversation response code
- Remove get_responses()
- Remove get_response_button_text()
- Remove title key from $conv_responses array
- Address https://github.com/friendica/friendica/issues/8000#issuecomment-589263329
2020-02-22 20:41:12 -05:00
637e38e535 User hide_dislike user setting to hide dislike button and conversation responses 2020-02-20 05:37:07 -05:00
efddd248f7 "remote_follow" is now "remote_comment" 2020-02-18 17:31:02 +00:00
d64bb0dd8f Remotely load posts to comment on them on the own page 2020-02-18 06:57:38 +00:00
3bd1f3a836 No more gender 2020-02-16 10:55:18 +00:00
2a7de4213f Correctly initialize post actions button template variable
- Address https://github.com/friendica/friendica/issues/7999#issuecomment-586020764
2020-02-13 20:42:15 -05:00
95b09aaec4 [frio] Add loading animation on comment form submit 2020-02-11 23:45:47 -05:00
nupplaPhil
85dc9bb96b
Add license info at Friendica PHP files 2020-02-09 16:18:46 +01:00
nupplaPhil
23c64b9a11
Add license info at Friendica classes 2020-02-09 15:45:36 +01:00
6e02105d88 Useless links removed / Item menu is moved to the item actions bar 2020-02-06 22:06:24 +00:00
nupplaPhil
3a012d6fb7
Fix ItemCCMail 2020-02-01 20:11:09 +01:00
Philipp
0406fe7ade
Merge pull request #8163 from MrPetovan/task/7817-custom-fields-part-3
New custom profile fields feature part 3: Updating the API
2020-01-31 22:39:11 +01:00
fc370f74ea
Fix secure Mail addon 2020-01-31 19:32:17 +01:00
608e634858 Update Mastodon API with new profile field entity 2020-01-29 23:30:38 -05:00
07a4bb73fa Add DDD classes for Mastodon\Field entity 2020-01-29 23:26:07 -05:00
f6aea0d65a
Fix invalid "emailer_prepare" Hook
- Use IEmail instead of array data
- Introduce "composer" based library for phpmailer
2020-01-29 20:20:40 +01:00
2b433e0ea6
fix https://github.com/friendica/friendica/issues/8187 2020-01-28 22:06:59 +01:00
582f6bd4a3
Refactor API notification usage
- Remove "mapFields()" from BaseModel
- Add new Notification API entity (including collection)
- Add new NotificationFactory method "getApiList()"
2020-01-28 21:28:57 +01:00
bd910342df Add custom emojis Mastodon API endpoint 2020-01-28 08:14:48 -05:00
0de8e4db08 Move Mastodon API entities to src/Object 2020-01-27 20:01:32 -05:00
6350b210a6
Renaming - part 2 :-) 2020-01-27 00:01:17 +01:00
765a0d8892
Some Renames:
- EMail => EMail
- toEmail => toAddress
- fromEmail => fromAddress
2020-01-26 23:47:16 +01:00
f6878b5bcf
fix return type 2020-01-26 21:35:05 +01:00
4efba4d0cf
fix boolean field 2020-01-26 21:35:04 +01:00
2b8f067715
Introduce interface for emailing and create email classes 2020-01-26 21:35:04 +01:00
74f3a2f90c
Fix API result, add PHPDoc and cleanup object construction
Fix missing getters
fix data array
fix missing "$" for template-variables
Remove lazy-loaded parent notification instance (for now..)
2020-01-25 21:15:01 +01:00
4c5856da2b
update PHPDoc 2020-01-25 19:58:27 +01:00
0850fb88dd
ReWork Notification Model/Module/Object/Repository/Factory
- Introduce Repository for interaction with "notify" table
- Introduce Factory for read-only notification objects (they're just loosely based on notification the table!)
- Introduce Objects for type-safe usage at the presentation layer
- Reworked Model, which is now fully based on the notify table, including generated fields (cache, ..)
2020-01-25 19:58:22 +01:00
6d7f0a6fd8 Remove duplicate profile_uid key in App->profile array 2020-01-20 07:32:46 -05:00
ed9392469e
Remove unneeded Config namespace usages 2020-01-19 22:50:44 +01:00
6c36fd9e01
Move Config::get() to DI::config()->get() 2020-01-19 21:21:13 +01:00
d6efc90194
cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
a9a36fb302
Move L10n::tt() calls to DI::l10n()->tt() calls 2020-01-19 16:31:17 +01:00
5dfee31108
Move L10n::t() calls to DI::l10n()->t() calls 2020-01-19 16:31:16 +01:00
cdbc94a9e1 Some more added lines 2020-01-19 09:51:37 +00:00
0a4119adaf @brief is removed completely 2020-01-19 06:05:23 +00:00
800694e9b3
Remove unused use statements & remove PConfig class 2020-01-18 17:02:59 +01:00
9e9429b56d
Move PConfig::get() to DI::pConfig()->get() 2020-01-18 16:50:57 +01:00
33674808dc
Remove deprecated App::cmd - replace with DI::args()->getCommand() 2019-12-29 20:17:51 +01:00
e6f61c2cc7
Remove deprecated App::query_string - replace with DI::args()->getQueryString() 2019-12-29 20:17:50 +01:00
e93fba5136
Remove deprecated App::removeBaseURL - process methods to DI::baseUrl()->remove() 2019-12-29 20:17:45 +01:00
181529f3df
Refactor dynamic App::getProfiler() to static DI::profiler() 2019-12-29 20:17:42 +01:00
388b963714
Replace BaseObject class with DI::* calls 2019-12-29 20:17:38 +01:00
1de3f186d7
Introduce new DI container
- Adding Friendica\DI class for getting dynamic classes
- Replacing BaseObject::getApp() with this class
2019-12-29 20:16:55 +01:00
c037e9143c Additionally display the protocol together with the network 2019-12-27 17:24:29 +00:00
48ec65eb4b Fix the "ago" date (with "received at") for other themes than frio 2019-12-26 19:51:36 +00:00
3d701dd459 Only show the difference between posting and receive date when there is a difference 2019-12-03 07:23:01 +00:00
02875df596 Show the received date along with the creation date of posts 2019-11-29 06:24:02 +00:00
fc94cad5f2 Pinned posts now work for visitors in the intended way 2019-11-08 06:52:44 +00:00
ed58af25a5 show pinned items 2019-11-07 06:53:18 +00:00
cf56992444 We can now pin our own posts 2019-11-07 05:39:15 +00:00
03bf1dcbd3 Move Object\Image static methods to Util\Images
- Optimize imports in modified files
2019-11-02 07:48:45 -04:00
Philipp Holzer
3897c74deb
Add docs 2019-10-25 00:10:20 +02:00
Philipp Holzer
07cea24430
Move Activity/Namespaces defines to constants 2019-10-24 21:40:12 +02:00
Philipp Holzer
edf006905b
Move (last) get_cats_and_terms to Content\Item::determineCategoriesTerms()
- Added incomplete test
2019-10-23 02:48:46 +02:00
Philipp Holzer
52c42491c4
Move activity_match() to Protocol\Activity::match()
- With tests
2019-10-23 02:05:11 +02:00
146646c4d4 Replace deprecated calls to defaults() by ?? and ?: in src/ 2019-10-16 08:38:52 -04:00
83b00ef308 New function "isAuthenticated" 2019-09-28 18:09:11 +00:00
ec66553032 Reworked "remote" cookie handling 2019-09-25 22:24:17 +00:00
9cbf320c86 Issue 7563: Use icons instead of names on posts 2019-08-28 06:38:35 +00:00
5a1a5a54dc Delivery count now counts the failed delivery attempts as well 2019-08-20 07:39:13 +00:00
b9ab613777 Merge branch 'master' into develop 2019-06-23 17:40:52 -04:00
Philipp Holzer
cc7444d84d
Move internal recursion-counter to the end of all cur/fetchUrl parameters 2019-06-10 14:34:54 +02:00
01e71254d9 Replace defaults() calls on $_SESSION by Core\Session calls
- Replace direct calls to $_SESSION by Core\Session calls in Module\Login
2019-05-26 21:26:59 -04:00
Philipp Holzer
059b813090
Add PhpDoc / Code Standards 2019-05-20 19:14:39 +02:00
Philipp Holzer
1e36c68e48
Moving Search to Core, Refactor Objects 2019-05-20 18:42:27 +02:00
Philipp Holzer
419cc81ef1
renaming 2019-05-19 05:13:06 +02:00
Philipp Holzer
e00f110ef1
Move mod/dirfind to src/Module/DirFind 2019-05-19 04:28:16 +02:00
09c44f96fd
Moving Model call outside Object Namespace 2019-04-05 07:53:54 +02:00
a0fddca407 Display if an item is reshared 2019-04-02 05:38:42 +00:00
c2fd579916 typo 2019-03-22 22:56:57 -04:00
8237e73e26 Adding REAMDEs to directories 2019-03-22 22:56:57 -04:00
ea40308048 Fixing automention 2019-03-19 22:07:53 +00:00
694cf50509 Fix mentions - again 2019-03-11 06:41:48 +00:00
337a3bb1aa Fix for the automatic mentioning 2019-03-10 05:41:40 +00:00
5f2a66e66c Add check for EXIF data existence in Object/Image
- Addresses https://github.com/friendica/friendica/issues/6338#issuecomment-467121955
2019-03-08 22:09:41 -05:00
e51f2cea0d Add implicit mentions to explicit mentions default text 2019-02-23 17:32:12 -05:00
34bc0b0c97 Add potential debug display of implicit mentions in frio
- Refactored conversation() by removing extraneous intermediary variables
2019-02-23 17:32:11 -05:00
7320c5e8e8 Normalize Contact::magicLinkByContact method name 2019-02-23 17:32:10 -05:00
7703875b55 Fixes "Undefined property: Friendica\App::$queue" 2019-02-23 16:08:02 +00:00
08d92d7ad8 Automatically adding mentions in the network stream hadn't really worked 2019-02-21 20:42:00 +00:00
256e845c5d
Merge pull request #6641 from nupplaphil/config_followup
Config FollowUp
2019-02-17 17:56:31 -05:00
0a7861da65
Dependency of callstack moved one layer up 2019-02-16 23:17:10 +01:00
5e6e1a8025
Introducing Profiler 2019-02-16 23:11:30 +01:00
d7dbc632f8 Improved comment hiding interaction
- Remove global window.showMore and window.showFewer
- Improve global showHideComments function
- Remove frio-specific showHideComments function
2019-02-14 22:24:34 -05:00
Michael Vogel
c7308d98fa
Merge pull request #6614 from MrPetovan/task/6552-add-explicit-mentions
Add explicit mentions to ActivityPub/Diaspora comments
2019-02-10 00:52:40 +01:00
7c58944449 Add "delivery done" label 2019-02-08 23:19:26 -05:00
9887f2c3d0 Toggle explicit mentions in comment boxes with explicit_mentions config 2019-02-08 23:07:36 -05:00
71fe689aae Some small notice prevented 2019-02-06 07:30:31 +00:00
a7963fe18a AP: Automatically send follow requests for reshared items 2019-01-30 21:33:23 +00:00
f226464acc Don't auto mention yourself or forums, don't do it in the firstlevel post 2019-01-30 03:36:24 +00:00
e38eebe529 Standards 2019-01-28 22:06:28 +00:00
d259007f11 Removing the parameter 2019-01-28 21:53:13 +00:00
d40b2792b6 Display mentioned users and in the comment box by default 2019-01-28 21:22:03 +00:00
64847e7cc8 Fix types in doc blocks/prototypes 2019-01-23 09:06:58 -05:00
b161bd1dfa Improve get_responses() prototype 2019-01-21 11:37:05 -05:00
ce177f22c8 Fix doc blocks and return value type 2019-01-21 11:36:01 -05:00
ad9c67663d Move Contact::Page_* constants to User::PAGE_FLAGS_* 2019-01-21 10:55:37 -05:00
4a95ca280d Remove unused code
- Remove commented code
- Remove unused/immediately overwritten variables
- Remove extraneous parameters
- Remove unreachable code
- Remove duplicate array keys
2019-01-21 10:48:40 -05:00