010f70e432
[TWIG][CSS][Accessibility] Base template accessibility improvements. Applying more semantic HTML5 tags and aria to describe content actions.
2021-08-20 11:38:32 +01:00
fc310a0b4e
[CSS] Fixed Favourite button background size and colour. Fixed right panel incorrect font size.
2021-08-20 11:38:32 +01:00
d398456be8
[TESTS] Fix namespace on Controller Security test
2021-08-20 11:34:08 +01:00
3288d48b8a
[TESTS] Fix broken tests and expand tests around Attachments
2021-08-20 11:34:07 +01:00
94edde001c
[TESTS] Fix Common test
2021-08-20 11:34:06 +01:00
41d759428f
[TESTS][DataFixtures] Use Temporary file instead of an ad-hoc solution to copy the upload files
2021-08-20 11:32:49 +01:00
469cd97b9b
[Posting] Respect process_links setting
2021-08-19 19:37:56 +01:00
8a01224feb
[FileQuota] Update plugin to respect the new entities
2021-08-19 19:37:56 +01:00
61d558b371
[CORE] Fix path configuration
2021-08-19 01:58:29 +01:00
8c5486ba13
[FIXTURES] Catch any exception, we don't have VIPS-related only
2021-08-19 01:58:29 +01:00
a7d4a56b14
[TESTS][Forms] Respect new naming conventions
2021-08-19 01:57:19 +01:00
bef23f20bc
[TESTS] remove accidentally duplicate sample upload
2021-08-19 01:07:51 +01:00
22ad2bd5cc
[VideoEncoder] Port plugin to v3 properly
2021-08-18 23:38:03 +01:00
968a425459
[DOCS][Developer] Paradigms: Update is_null based on poll votes
...
Everything around the use we give to php's null is about the state of having a value or not. Thus, using `is_null` always is the less bad option.
2021-08-18 23:38:03 +01:00
30975111d9
[ImageEncoder] Make plugin respect instance config and use the new core interface
2021-08-18 23:38:03 +01:00
7c85d312ed
[ENTITY][AttachmentThumbnail] Improve the way EncoderPlugins participate in the thumbnail process
2021-08-18 23:38:03 +01:00
c50e3324ef
[TWIG][Attachments] Don't throw event with mimetype in its name
2021-08-18 23:38:02 +01:00
aebc5358b5
[Core][GSFile] Improve the way EncoderPlugins participate in the file sanitization process
2021-08-18 23:38:02 +01:00
24b3e22f73
[ENTITY][Attachment] Respect rfc6838#section-4.2 mimetype length
2021-08-18 23:38:02 +01:00
6e9cde8a5c
[TESTS][Controller][AdminTest] Update int tests to use attachment file_quota instead, as we deleted attachment max width
2021-08-18 23:37:57 +01:00
4089fc692d
[CONFIG] Add setting for attachment sanitization
2021-08-18 22:17:40 +01:00
f25759d60b
[CONTROLLER][Attachment] Some attachments may not have dimensions
2021-08-18 22:17:39 +01:00
a383021992
[DOCUMENTATION] Update documentation regarding route accept formats
2021-08-18 21:40:08 +01:00
d6e6e56814
[ROUTER][UTIL] Allow specifying the Accept format for a route
2021-08-18 21:33:07 +01:00
9afa265c30
[DOCKER] Update PHP docker container to include ffmpeg, for the VideoEncoderPlugin
2021-08-18 21:20:25 +01:00
027c9a9324
[MODULES][PLUGINS] Move noteActionHandle utility to NoteHandlerPlugin which plugins which handle actions on notes should extend
2021-08-18 19:14:24 +01:00
2c10ce5cfc
[UI] Rename all forms to more specific names, to avoid form name collisions
2021-08-18 18:38:54 +01:00
c03c6f1bb5
[UTIL][Form] Disallow using very generic form names, as they can collide with other forms in the same page
2021-08-18 18:35:03 +01:00
be5328cdc5
[TESTS] Fix LocalUserTest, i forgor to boot the kernel
2021-08-18 18:09:26 +01:00
4a781d483a
[TESTS] Fix tests broken with rebased commits
2021-08-18 17:40:37 +01:00
5bcabbb025
[TESTS] Raise test coverage for Link to 100%
2021-08-18 17:35:10 +01:00
b6cd58d501
[TESTS] Raise test coverage of LocalGroup to 100%
2021-08-18 17:35:10 +01:00
2ba6f66b7f
[TESTS] Raise test coverage of LocalUser to 100%
2021-08-18 17:35:10 +01:00
152beb5798
[TESTS] Raise GSActor test coverage to 100%
2021-08-18 17:35:10 +01:00
96612fcd43
[TESTS][Attachment][AttachmentThumbnail][GSFile] Reorganize tests and raise test coverage to 100%
2021-08-18 17:35:10 +01:00
4cda3fc645
[ATTACHMENTS][AttachmentThumbnail] Fix implementation of predictScalingValues and small fixes
2021-08-18 17:35:10 +01:00
b72fcd2a05
[TESTS] Add code coverage annotations to entities
2021-08-18 17:35:10 +01:00
9018b1301a
[TESTS] Raise test coverage for Note to 100%
2021-08-18 17:35:10 +01:00
20901d26df
[Note] Fix scope check for group notes, move away from SQL, to DQL
2021-08-18 17:35:10 +01:00
0b3ebf841d
[TESTS][DataFixtures] Add user, self follows, group member and group scope note
2021-08-18 17:35:09 +01:00
fd1bd9838d
[TOOLS] Disable command echo in Makefile
2021-08-18 17:35:09 +01:00
7320c6834f
[UI][Attachment] Use Attachment methods to get the proper URL, rather than crafting it in a template
2021-08-18 17:35:09 +01:00
9c533a54a7
[ATTACHMENTS] Ensure thumbnail dimensions are bounded and change way cropping is implemented
2021-08-18 17:35:09 +01:00
5be4c6a22e
[VideoEncoder] Add plugin composer dependency php-ffmpeg/php-ffmpeg
2021-08-18 14:46:49 +01:00
61500c5223
[Embed] Move composer dependency embed/embed from core to plugin
2021-08-18 14:46:49 +01:00
f7c426e81c
[ENTITY][Link] self urls can't be considered a remote url
2021-08-18 14:34:49 +01:00
40f2f5f977
[Embed][StoreRemoteMedia] Re-add {white,black}list check config
2021-08-18 14:15:53 +01:00
b7b54b8a07
[Posting] Fix wrong usage of DB::findBy
2021-08-18 12:23:36 +01:00
a6e41d3bd8
[DOCS][Developer] Recommend reading the tests cases for when the doc doesn't cover
2021-08-17 23:39:45 +01:00
d4ad0cc3d4
[DOCS][Developer] Update storage documentation
2021-08-17 23:37:19 +01:00
3af33d1317
[ImageEncoder] Fix ImageSanitization, it should never modify the input image
2021-08-17 23:35:35 +01:00
2448d83ace
[CSS] Hotfix: Figure captions do not overflow.
2021-08-17 21:59:54 +01:00
923ff309fe
[Posting] Store uploaded filenames as titles
2021-08-17 21:48:38 +01:00
f039c86578
[Avatar] Preserve uploaded filename and use Avatar's own route instead of attachment
2021-08-17 21:48:37 +01:00
e76e3b710b
Remove weird empty template
2021-08-17 21:48:37 +01:00
022a9476cc
[TWIG][CSS] Left and right panels accessibility improvements. Tabindex is now properly set up. When panels have the attribute open but aren't focused (keyboard navigation out of panel, into main content) they aren't displayed anymore.
2021-08-17 21:43:58 +01:00
4e5f9a51f0
[TESTS] Hot-fix Security controller tests, broken with ongoing form rendering changes
2021-08-17 20:54:46 +01:00
44593f2ab4
[TWIG][CSS] More consistent classes. Checkbox styling done. Register and Login pages now done.
2021-08-17 20:52:22 +01:00
2ae1198704
[UTIL][FORM] Password form now shows the proper HTML class, and it's respective label.
2021-08-17 20:52:22 +01:00
9e52bd127f
[CONTROLLER][SECURITY] Added class names. Help labels for each form element. Each form element now has a proper block prefix (the resulting HTML won't simply concatenate the form's name to the element's label).
2021-08-17 20:52:21 +01:00
41b45435ff
[DOC] Fixed installation.md typos.
2021-08-17 20:52:21 +01:00
e9fa41c5a8
[FORM] Fix bug where options were passed in the data parameter
2021-08-17 20:52:21 +01:00
48c11a3fda
[DOCS][Developer] Add an introduction
2021-08-17 20:27:54 +01:00
fa1585bd00
[DOCS][Developer] httpclient: Add an example of lazyness care
2021-08-17 20:27:54 +01:00
f5918d8d5c
[DOCS][Developer] Paradigms: apply XRevan86 fixes and remove the return types section, we must revisit it later..
2021-08-17 20:27:54 +01:00
ff4d31404b
[DOCS][Developer] Remove low level index, we will approach these themes in another manner
...
Fix some broken links
2021-08-17 20:27:54 +01:00
ac6f2bed5e
[TOOLS] Add make command 'database-force-schema-update' to update the database schema and 'redis-shell'
2021-08-17 01:31:52 +01:00
5cb45fcd66
Duplicate public/assets/css/bg.jpg history in tests/sample-uploads/attachment-lifecycle-target.jpg history.
2021-08-17 01:31:52 +01:00
dd22894f66
[TESTS][TOOLS] Always stop containers regardless of test success
2021-08-17 01:31:52 +01:00
11178289fa
[DEPENDENCIES] Update dependencies
2021-08-16 18:05:24 +01:00
1e8beefb07
[PLUGINS][ENTITY][Cover][ProfileColor] Clean up after interns and move entity defintions to be inside the corresponding plugin, rather than in core
2021-08-16 17:20:33 +01:00
f68a2ce481
[TESTS] Raise test coverage for GSFile to 100%
2021-08-16 17:11:28 +01:00
b0f5352a53
[TESTS] Raise test coverage for Attachment controller to 100%
2021-08-16 17:11:05 +01:00
69ff8c2750
[CORE][GSFile] Use pathinfo rather than regular expressions and don't attempt to persist an already persisted entity
2021-08-16 17:10:33 +01:00
355b26221d
[CONTROLLER][Attachment] Small refactor and add testing annotation
2021-08-16 17:09:44 +01:00
d4c3e26f50
[TESTS] Remove copied upload test files, if upload failed
2021-08-16 17:09:02 +01:00
5bd5c25dcf
[TESTS] Add coverage ignore flags to trivial methods
2021-08-16 17:08:29 +01:00
e30ae79eb7
[DB][DOCUMENTATION] Explain limit: 2 in findOneBy
2021-08-16 17:07:00 +01:00
fb861ed41f
[UTIL][EXCEPTIONS] Introduce NotStoredLocallyException
2021-08-16 17:06:02 +01:00
33bf99cfda
[ENTITY][Attachment] Raise mimetype max length to 64 characters and ensure we don't attempt to store more than that
2021-08-14 21:47:49 +01:00
4d883d1011
[TESTS] Cleanup attachment test data
2021-08-14 21:46:44 +01:00
1d95080f9a
[TESTS] Remove MediaFileTest and move setup code to media data fixture
2021-08-14 19:49:51 +00:00
bb57d7dc10
[TESTS] Move Media fixtures to their own file, for organization
2021-08-14 19:49:51 +00:00
f3972abb70
[DOCUMENTATION][Entity] Improve documentation on Entity::getWithPK, explaining the ways it can be used
2021-08-14 19:49:50 +00:00
2e3ab5bdfb
[ENTITY][Link] Sometimes URLs don't work, handle that
2021-08-14 17:08:11 +01:00
d23312aff9
[Embed] Add UI element and fix some bugs
2021-08-14 17:04:59 +01:00
a43f1a641a
[TWIG] Add Links representation to notes
2021-08-14 17:04:58 +01:00
31c5fd6da7
[ImageEncoder] Handle VIPS unsupported image type
2021-08-14 17:04:58 +01:00
7b3ca428e9
[ATTACHMENT] Some attachments don't have thumbnails and that's okay
2021-08-14 17:04:58 +01:00
df5e7b139a
[CORE][GSFile] ensureFilenameWithProperExtension: extension isn't an I/O param
2021-08-14 17:04:57 +01:00
4c1fc40c43
[ENTITY][Note] Add getter for note links
2021-08-14 17:04:57 +01:00
c381e58d33
[ENTITY] Refactor RemoteURL entities to Link
...
RemoteURL was being an awfully confusing term.
2021-08-14 17:04:51 +01:00
333567c6a1
[Embed] Retrieve remote thumbnails and other improvements
2021-08-14 17:00:53 +01:00
632a54208d
[Embed] Fix usage of EmbedLib
...
Fix other minor bugs
2021-08-14 17:00:53 +01:00
daaf7ea236
[Attachment] Sometimes we can't provide download of original file
2021-08-14 17:00:53 +01:00
3019048585
[Posting] Re-add original file to attachment on upload, if it was previously removed
2021-08-14 17:00:52 +01:00
9781ddc8e0
[AttachmentToNote][Attachment] Add title getter to Attachment
2021-08-14 17:00:52 +01:00
c12eacc758
[TESTS][Twig] Fix ExtensionTest->testIconsExtension
2021-08-14 17:00:52 +01:00
d13da61d30
[StoreRemoteMedia] Implement the first version of it in v3
2021-08-14 17:00:51 +01:00
f64436771c
[UTIL] Common::config wasn't a proper port from v2, it has to accept one argument only as well
2021-08-14 17:00:51 +01:00
91666f7d61
[RemoteURLToAttachment] Fix primary key, relation is: One Attachment Has Many URLs, One URL Has One Attachment
2021-08-14 17:00:51 +01:00
b20a4c89fb
[Attachment] Allow to delete the associated file
2021-08-14 17:00:50 +01:00
6453593b0d
[MODULES] Add module configuration
2021-08-14 17:00:50 +01:00
f72cfd1c2b
[CORE][Event] Fix bug on handler Log
2021-08-14 17:00:50 +01:00
c0a404c640
[CORE][Entity] Compare with object properties when creating/updating, instead of class
2021-08-14 17:00:50 +01:00
aec8521e4b
[ENTITY][Posting] Remove GSActorToRemoteURL, Fix URL database store
2021-08-14 17:00:49 +01:00
eb6ff68f7a
[AttachmentShowRelated] Bug fix after re-introduction of NoteActions
2021-08-14 17:00:49 +01:00
c86cac2095
[CSS][Assets] Minified header icons. Reverted footer links position due to Firefox's corageous interpretation of a fixed element's position.
2021-08-14 17:00:49 +01:00
c14718e8dd
[Favourite][TWIG][CSS] Favourite shows alt-text and properly sets colours. Titles translated on the right panel.
2021-08-14 17:00:48 +01:00
ae7516c893
[ATTACHMENTS] Always store in the same location
2021-08-14 17:00:48 +01:00
32ad5dbd74
[ENTITY] Split Attachment in various new entities
...
Remove Attachment Scope
Fixed some minor bugs
Scope will be implemented later in v3. It doesn't make sense to have
the scope handling being per attachment. Different actors can post
the same attachment with different scopes. The attachment controller
will assume the highest level of scope applied to the attachment and
the rest will be handled at the note level.
Motivation:
* Remove title from attachment, as it's part of the relation between attachment and note.
* Remove actor from attachment, many actors may publish the same attachment.
* Remove is_local from attachment, as it's part of the relation between attachment and note.
* Remove remote_url from attachment, different urls can return the same attachment.
Addition:
* Attachment now has a lives attribute, it's a reference counter with a nicer name
* GSActorToAttachment
* GSActorToRemoteURL
* RemoteURL
* RemoteURLToNote
* RemoteURLToAttachment
* AttachmentToNote now has a title attribute
2021-08-14 17:00:46 +01:00
2ea739ef61
[FileQuota] We'll get back to this plugin later
2021-08-14 16:17:15 +01:00
420b3f4aeb
[DB][Attachments] Use count function rathar than fetch and count, rename to refCount, rather than countDepencies
2021-08-14 16:13:01 +01:00
6cea2b1d00
[DEPENDENCIES] Update dependencies
2021-08-14 16:13:01 +01:00
9c99c11790
[TemporaryFile][TESTS] Throw on attempt to write to null resource and fix tests
2021-08-14 16:13:01 +01:00
ecbfba1b1a
[TESTS] Add test for JSON response and invalid accept format
2021-08-14 16:13:00 +01:00
66b39d3607
[ENTITY] Add JsonSerializable interface to Entity base class and implement it for the Note class
2021-08-14 16:13:00 +01:00
8e627f2c18
[TESTS] Add test annotations to core classes
2021-08-14 16:12:59 +01:00
7cace2051f
[CORE][Controller] Fix JSON response and add test annotations
2021-08-14 16:12:59 +01:00
a4cb90ba12
[EVENTS] Change FormatNoteList do separate in and out arguments
...
This is necessary due to some weird problem which I wasn't able to figure out (but which doesn't matter)
that somehow causes the event to be called twice during testing, and thus the function was exploding
2021-08-14 16:12:58 +01:00
cb0093bd4a
[TESTS] Fix Entity test in accordance with the changes to createOrUpdate
2021-08-14 16:12:58 +01:00
c804892672
[TEST] Raise test coverage for UserPanel to 100%
2021-08-14 16:12:57 +01:00
e053ee451b
[CONTROLLER][UserPanel] Finish implementation of ::notifications so it actually saves the values in the database
2021-08-14 16:12:57 +01:00
9a6fddb004
[CONTROLLR][UserPanel][PLUGINS] Add submit button to notification settings for each transport
2021-08-14 16:12:57 +01:00
06b9bd9910
[CONTROLLER][AdminPanel] Further ensure form validity
2021-08-14 16:12:56 +01:00
47daf6169a
[CORE][Log] Add Log::unexpected_exception utility which logs and throws a ServerException
2021-08-14 16:12:56 +01:00
71b1ee7796
[CORE][Entity] Fix implementation of createOrUpdate so it doesn't throw NotFoundException if trying to create an object
...
This was previously done because we wanted to notify the callee that
and entity existed but not with the provided contents. With the change
of return value, with a bool $is_update, this is no longer a problem.
2021-08-14 16:12:55 +01:00
4266b361c0
[TESTS] Update PHPUnit config to start executing tests by last failure. This doens't seem to actually work currently, though
2021-08-14 16:12:55 +01:00
504c8f8935
[TOOLS] Add utility commands to the Makefile
2021-08-14 16:12:55 +01:00
c38bbed7df
[UTIL][FormFields] Move FormFields class to Util\Form namespace
2021-08-14 16:12:54 +01:00
7308e66981
[Favourite][TWIG][CSS] Favourite now works.
2021-08-14 16:12:54 +01:00
2590ea7b67
[CSS] Overall typography resizing to provide proper text hierarchy. Radio buttons polish, notes author box is now smaller. Better organization of CSS rules according to their filename and thus, their aim.
2021-08-14 16:12:53 +01:00
6aa61abd81
[CSS] Fixed top margin, footer elements are now actually footer elements.
2021-08-14 16:12:53 +01:00
96abf53e22
[TWIG][CSS] Buttons are now the correct size in all contexts. Right panel create a notice section re-structure.
2021-08-14 16:12:52 +01:00
b7d205465f
[TWIG][CSS] Feedback provided to active page. Removed top accent border on notes.
2021-08-14 16:12:52 +01:00
d19c990acf
[FAQ][CSS] All FAQ pages stylized, minor structure changes throughout.
2021-08-14 16:12:52 +01:00
38abbc14b9
[TWIG][CSS] Left panel text hierarchy fix (no <hr> element between timeline navigation and its items). Default CSS fixes for buttons and input file selectors.
2021-08-14 16:12:51 +01:00
0eb9575534
[CSS] Input file elements polish. It should resize properly and provide feedback when selected (not a thing in Firefox ESR yet).
2021-08-14 16:12:51 +01:00
a02093e848
[CSS] Base CSS polish, reset CSS additions for better cross-browser compatibility.
2021-08-14 16:12:51 +01:00
9343d00110
[Avatar] Delete attachment only if safe
2021-08-14 16:12:47 +01:00
67f5421691
[ATTACHMENTS] Add dependencies counter
2021-08-05 14:44:05 +01:00
bbaeaad052
[CSS] Fixed background incorrect sizing.
2021-08-05 13:09:18 +01:00
5236278f45
[CSS] Mesh gradient works as intended with no banding.
2021-08-05 13:01:31 +01:00
289eef5cf7
[Avatar] Store as regular attachments
2021-08-05 03:24:21 +01:00
c155f4e30e
[DEV] Add PsySH REPL
2021-08-05 03:24:21 +01:00
5896f5bb82
[Avatar] Move entity from core to component
2021-08-05 03:23:05 +01:00
1556b3e019
[CORE][GSFile] Allow storing files under /file
2021-08-05 03:22:57 +01:00
c58b9fb5b1
[TESTS] Ignore coverage of ResetPasswordRequest, as it uses mailing functionality. We may want to introduce this test in the future
2021-08-04 20:11:47 +00:00
97a3c067d9
[UTIL][FormFields] Allow specifying whether a password is required and provide placeholder text
2021-08-04 20:11:47 +00:00
92db61a975
[ROUTES] Remove individual settings pages, as they got merged
2021-08-04 20:11:47 +00:00
05e10589c3
[ENTITY] Refactor LocalUser::changePassword for easier use
2021-08-04 20:11:47 +00:00
a590ddd85e
[UTIL][EXCEPTION] Add AuthenticationException, representing an auth error, status code 401 unauthorized
2021-08-04 20:11:47 +00:00
0bead1c58a
[TESTS] Change format of data fixtures to allow creating more users
2021-08-04 20:11:47 +00:00
0845224188
[CORE][DB] Specify desired case in array_change_case, for clarity
2021-08-04 20:11:47 +00:00
1da1f0918e
[TESTS] Raise test coverage for AdminPanel to 100%
2021-08-04 20:11:47 +00:00
b075ab610b
[SECURITY] Do not require email when in development
2021-08-04 17:48:00 +01:00
5b858a7bc1
[DOCS][Dev] Add Debugging and Testing
2021-08-04 16:58:27 +01:00
f760de43b0
[TESTS] Fixup Security controller tests to match new UI
2021-08-03 19:37:56 +00:00
960675b459
[TESTS] Raise test coverage for AdminPanel controller to 100%
2021-08-03 19:37:56 +00:00
f9c1d14c7a
[TESTS] Raise test coverage for Attachment controller to 100%
2021-08-03 19:37:56 +00:00
ed21290ef4
[TESTS] Add a sample image to the test dataset
2021-08-03 19:37:56 +00:00
6b098a26f7
[CORE][GSFile] Ensure files are stored inside the configured storage folder, with a relative filename in the database
2021-08-03 19:37:56 +00:00
19a966f1a9
[CORE][CONTROLLER] Add TODO to Controller base class as to where our custom exception pages would be implemented
2021-08-03 19:23:03 +00:00
f5f11b6e54
[CORE][ENTITY] Allow create'ing will null values
2021-08-03 19:23:03 +00:00
9077403f65
[ImageEncoder] Don't print_r the exception as that leads to an OOM error
2021-08-03 19:23:03 +00:00
bbdad515a2
[CONFIG] Ensure consistency in config file
2021-08-03 19:23:03 +00:00
7034476cc7
[TESTS] Make PHPUnit exit on first fail and some other tweaks
2021-08-03 19:23:03 +00:00
927472cf06
[UTIL][FORM] Create a utility class that defines common form fields, such as passwords
2021-08-03 19:23:02 +00:00
b2456d8cd2
[TESTS] Raise test coverage for Controller/Security to 100%
2021-08-03 19:23:02 +00:00
d1e92a80e5
[CORE][GSFile] Assert that the destination folder where to store the attachment is inside the INSTALLDIR and store the filepath in the database
2021-08-03 19:23:02 +00:00
af951685ed
[TESTS] Add coverage ignore to TemplateController and ResetPassword (as it requires sending emails)
2021-08-03 19:23:02 +00:00
9c61e92257
[CONTROLLER][Attachment] Assert that the supplied is positive and add documentation
2021-08-03 19:23:02 +00:00
4297eb71a0
[CORE][GSFile] Change actor_id paramenter of validateAndStoreFileAsAttachment to optional and reorder them and their usages
2021-08-03 19:23:02 +00:00
b89368bf6a
[AUTOGENERATED] Update entity fields for ResetPasswordRequest entity
2021-08-03 19:23:02 +00:00
5fc5df68f5
[CORE] Add repositories, as needed by the Reset Password Bundle
2021-08-03 19:23:02 +00:00
a83d506d6c
[UTIL] Add a class that defines commonly used form fields
2021-08-03 19:22:54 +00:00
56481c8289
[CORE] Add passowrd reset and forgot password functionality
2021-08-03 19:22:54 +00:00
6d2f8daeae
[DEPENDENCIES] Add symfonycasts/reset-password-bundle as a dependency
2021-08-03 19:22:54 +00:00
bdbd588de9
[CORE][SECURITY][EMAIL] Move email confirmation functionality to it's own static wrapper, in preparation for adding password reset functionality
2021-08-03 19:22:54 +00:00
176d604abb
[CONTROLLER][Security] Refactor and make clearer errors with duplicate nicknames and emails. Return notes as a callable, since they're not used in the default template, in the login and register pages
2021-08-03 19:22:54 +00:00
bff65afe5d
[TESTS][Queue] Add @codeCoverageIgnore to select queueing functions
2021-08-03 19:22:50 +00:00
6479b698f8
[TESTS][Router] Add tests for Router and use named paramenters, as we can since PHP8
2021-08-03 19:22:16 +00:00
a01914ddac
[ENTITY][LocalUser] Add method 'findByNicknameOrEmail'
2021-08-03 19:22:16 +00:00
2e3ec15827
[CORE][Controller][TESTS] Fix issue that arrises in tests where the Accept header is not specified
2021-08-03 19:22:12 +00:00
6deac21960
[EXCEPTION] Add Email related exceptions
2021-08-03 19:21:34 +00:00
c4de4cab32
[UTIL][Nickname] Refactor Nickname and extract a validate function, as we'll want to perform normalization in select cases in the future, likely as a plugin
2021-08-03 19:21:34 +00:00
75af2232dc
[UI] Add TODO annotation to login template, since it's possible to login using email, so the fonrm field names should be updated
2021-08-03 19:21:31 +00:00
988d384654
[TESTS][DataFixtures] Add password and email to created test user
2021-08-03 19:15:30 +00:00
14db5d9864
[TESTS][Twig] Add @codeCoverageIgnore to select methods, as these are simple wrappers
2021-08-03 19:15:30 +00:00
e0ebef594f
[TESTS][DB] Update test to reflec fact that GSActor no longer has a normalized_nickname field
2021-08-03 19:15:30 +00:00
63d26d1295
[TESTS][Nickname] Update tests to reflect new usage. Normalization functionality will be moved to a plugin
2021-08-03 19:15:30 +00:00
ed850a7763
[TESTS][TemporaryFile] Update test to reflect new usage
2021-08-03 19:15:30 +00:00
e196a3577d
[ENTITY] Remove 'normalized_nickname' field from GSActor as that feature will be moved to a plugin
2021-08-03 19:15:30 +00:00
c0e4dec674
[TESTS][DOCUMENTATION][Module] Add documentation and exclude method from testing in Module base class
2021-08-03 19:15:30 +00:00
88ab76c480
[CORE][TemporaryFile] Add option to specify attempts and better handle when reaching the attemp limit without being able to create a file
2021-08-03 19:14:56 +00:00
1f9acaf4ef
[TESTS] Add tests for GSFile
2021-08-03 19:13:30 +00:00
55710aa33d
[DB] Refactor findOneBy method
2021-08-03 19:13:29 +00:00
8e743eabb9
[TESTS][DOCUMENTATION] Add documenation for the list events command and exclude it from unit testing
2021-08-03 19:13:29 +00:00
d34155c743
[CONFIG] Make password length limits configurable
2021-08-03 19:13:29 +00:00
0d6b4093fe
[TESTS] Exclude Data Fixtures from testing, as that happens before testing
2021-08-03 19:13:29 +00:00
400716c1b2
[TESTS] Exclude class Security from testing, as it's a simple wrapper
2021-08-03 19:13:29 +00:00
75c9ffde31
[TESTS] Raise test coverage for ModuleManager to 100%
2021-08-03 19:13:29 +00:00
4258148a03
[TESTS] Exclude HTTPClient from testing, as it's a simple wrapper and we don't want to be performing HTTP requests in tests, for speed and reliability
2021-08-03 19:13:29 +00:00
6956e6907c
[TESTS] Raise test coverage for Form to 100%
2021-08-03 19:13:29 +00:00
7ee908f4dc
[TESTS] Revert exposing Redis docker container ports, as this conflicts with the actual instance, and was intended for testing
2021-08-03 19:13:29 +00:00
b2d72673c7
[TESTS][EVENTS] Raise test coverage for Event class to 100%
2021-08-03 19:13:28 +00:00
b51d43e6e2
[TESTS][ENTITY] Raise test coverage for Entity class to 100%
2021-08-03 19:13:28 +00:00
5777cdeaf9
[TESTS][LOG] Raise test coverage for Log class to 100%
2021-08-03 19:13:28 +00:00
b0ef7599b2
[TESTS] Ignore GNUsocial class from tests, as it simply pipes objects around
2021-08-03 19:13:28 +00:00
2c74bd7fb4
[FORM][DOCUMENTATION] Add documentation to Form class
2021-08-03 19:13:28 +00:00
b9fdaa1401
[EVENT] Fixup implementation, as imformed by tests
2021-08-03 19:13:28 +00:00
88bb0c6b38
[ENTITY] Fixup implementation, as imformed by tests
2021-08-03 19:13:28 +00:00
df956a5f90
[DB] Handle using methods with class name as well as table name and add lookup methods
2021-08-03 19:13:28 +00:00
aa66263b92
[TESTS] Add missing tests for Common
2021-08-03 19:13:28 +00:00
ae27d95509
[TESTS] Expand and fix cache tests
2021-08-03 19:13:27 +00:00
2beda0dd44
[TESTS] Add ignore annotations to code paths that serve as hooks in DependencyInjection
2021-08-03 19:13:27 +00:00
b79629b6d2
[TESTS][CACHE] Fixup errors found in cache implementation by testing. Ensure the newest values are kept, in pushList with max_count
2021-08-03 19:13:27 +00:00
4f6f4aa512
[ENTITY] Fix foreign key type in Cover entity, as found by tests
2021-08-03 19:13:27 +00:00
3554a5c369
[TESTS] Exclude Routes from testing, as well as, temporarily, src/Security
2021-08-03 19:13:27 +00:00
5ca8842308
[TESTS] Use vendor/bin/simple-phpunit for running the tests, as it provides the appropriate polyfills
2021-08-03 19:13:20 +00:00
5bf4a68454
[LEFT][RIGHT][CSS] Panels now occupy full page in smaller screen sizes.
2021-08-03 19:02:39 +01:00
903e6b33ff
[RIGHT][CSS] Right panel now shows an intuitive icon for other note options available.
2021-08-03 19:02:39 +01:00
0a0ead3081
[TWIG][CSS] Overall CSS optimizations. Image gradients are now used, 64x64 px.
2021-08-03 19:02:39 +01:00
efeb4b4ffe
[SETTINGS][PLUGIN][CONTROLLER] Populate profile tabs event added. Settings base template populated with such event for plugins and components.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-08-03 19:02:39 +01:00
780d341939
[SETTINGS][ROUTES][CONTROLLER] Settings overhaul, refactoring to accommodate new global settings view. WIP, component settings aren't shown at the moment.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-08-03 19:02:39 +01:00
5e012c39ab
[SETTINGS][TWIG][CSS] Settings WIP. Form polished, dropdowns need styling.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-08-03 19:02:38 +01:00
787afb9b41
[BASE][CSS] Snappier and consistent animations.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-08-03 19:02:38 +01:00
0e7c657301
[TWIG][SETTINGS] WIP. Settings navigation early sketch.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-08-03 19:02:38 +01:00
95f92d34db
[CSS] <figcaption> now has top padding for better legibility, hover now resizes it's element accordingly.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-08-03 19:02:38 +01:00
3cd33fb83a
[TWIG][CSS] Panels are fixed and base content acts accordingly on all sizes.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-08-03 19:02:38 +01:00
c2fc2300c7
[DOCS][Dev] Add HTTP Client
2021-08-03 18:22:37 +01:00
7fd4149695
[DOCS][Dev] Add Security
2021-08-03 17:54:43 +01:00
0273c8ca24
[DOCS][Dev] Add Queues
2021-08-03 17:23:58 +01:00
477518abf7
[DOCS][Dev] Add Internationalisation
2021-08-03 16:07:32 +01:00
47171069c2
[DOCS][Dev] Add Attachments
2021-08-03 15:37:31 +01:00
e8f57e8380
[DOCS][Dev] Configure search
2021-08-03 15:37:30 +01:00
7f3a9bc880
[DOCS][Dev] Add Logging
2021-08-03 15:37:30 +01:00
263a5f67f3
[DOCS][Dev] Add Templates
2021-08-03 13:34:57 +01:00
df1f12470f
[DOCS][Dev] Add Routes and Controllers
2021-08-03 13:34:56 +01:00
0cf53a4163
[DOCS][Dev] Add Cache
2021-08-03 13:34:53 +01:00
12f3e1f406
[DOCS][Dev] Cleanup src directory
2021-07-31 01:57:20 +01:00
15f2514aa2
[DOCS][Dev] Add database chapter
2021-07-31 01:46:54 +01:00
900d538e26
[DOCS][DEV] Add events
2021-07-30 19:09:25 +01:00
8f8b66c938
[DOCS][Paradigms] Elaborate on Null, Set and Void
2021-07-29 13:43:57 +01:00
3c0f6b294f
[DOCS] Write exceptions chapter
2021-07-28 21:06:55 +01:00
cfd771283a
[TWIG][CSS] Final fix for panels, resizing works as intended, content is wrapped when no space is available. Simpler rules throughout.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:45 +01:00
88eea554fc
[TWIG][CSS] Panels weren't "flexing" properly, in smaller sizes the right panel form would break.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:45 +01:00
5c8735ebea
[TWIG][CSS] Fixed right panel buttons, fix issue where the form was invalid on send.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:44 +01:00
d2a7281a4d
[TWIG][CSS] Right panel WIP. Create a note now looks better, need to style in some way the default user agent buttons without removing features (e.g. current file chosen).
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:44 +01:00
0ce686d8bb
[TWIG][CSS] Left panel profile section done.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:44 +01:00
b4bf720b06
[TWIG][CSS] Register and Login styling done.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:44 +01:00
0d83bbff23
[CSS] Fixing poor responsiveness to main nav element hover animation.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:43 +01:00
a9d710f189
[CSS][TWIG] Left panel HTML nesting to better aid screen readers.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:43 +01:00
4b095961d8
[CSS][TWIG] Panels icons are now hidden on desktop view to stop possible inconsistencies on window resizing. Left Panel polish.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:43 +01:00
14ecf913bf
[CSS][TWIG] Details element is now shown by default on larger screens, and hidden on smaller screens.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:42 +01:00
2b4bf6c31f
[CSS][TWIG] Timeline navigation is now a part of the left panel, this way more items could be displayed at a time. Left panel styling WIP.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:42 +01:00
6437e68132
[TWIG] Microformats added to timeline, note's view and media. Should be backwards compatiblr as well.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:42 +01:00
37a2db3706
[CSS] Fixed accessibility issues with header and panel elements. Left, instance and right elements are now properly ordered when focused.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:41 +01:00
362be17aba
[CSS] Fixed incorrect Chromium based browsers improper main content view. Flex item order (shouldn't be a problem, but it was) and padding for the container class was the root issue.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:41 +01:00
3a5ba9b6c4
[CSS] Main container 'order' attribute was somehow a problem in Chromium.
2021-07-28 11:52:41 +01:00
dd7d412e83
[CSS] Fixed top content margin.
2021-07-28 11:52:41 +01:00
593d5bf96e
[TWIG][CSS] Accessibility improvements, all general links provide proper feedback now. Base theme CSS progress, page now looks more as it should. Panels WIP.
2021-07-28 11:52:40 +01:00
d6cf812707
[TWIG][CSS][ICONS] New profile and notice creation panel, alternative text set correctly for header icons. WIP in base styling and panels.
2021-07-28 11:52:40 +01:00
2d7b201e71
[TWIG][CSS] Found solution to show details content by default in desktop view. However, post_form is being rendered multiple times, it was already rendered in the Posting Component. Needs to be fixed.
2021-07-28 11:52:40 +01:00
ac5df2f6b3
[TWIG][CSS] Panels are now animated when shown, main content width as well as panel's is now correctly configured. WIP: displaying side panels by default when space is available, "details" element state cannot be manipulated through CSS only, need a better solution.
2021-07-28 11:52:39 +01:00
375d0097f3
[TWIG][CSS] Panels functionality works as intended, size needs to be worked upon.
2021-07-28 11:52:39 +01:00
a5eb231196
[TWIG][CSS] Complete HTML refactoring, now using details element instead of a checkbox trick per panel. Using a "grid" akin to IBM's Carbon design guidelines.
2021-07-28 11:52:39 +01:00
aa6886a62a
[TWIG][CSS] Timeline WIP. Creating a notice is now done on the right panel. HTML structure improvements, such as the timeline divided from the navigation div.
2021-07-28 11:52:39 +01:00
aa1fd8ea40
[TWIG][CSS] Base template structural refactoring to accommodate true canons of page construction. CSS WIP to reflect these changes.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:38 +01:00
f47fedcfd4
[TWIG][CSS] Fixed right panel buttons, fix issue where the form was invalid on send.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:38 +01:00
f206b55869
[TWIG][CSS] Right panel WIP. Create a note now looks better, need to style in some way the default user agent buttons without removing features (e.g. current file chosen).
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:38 +01:00
69f5c1e312
[TWIG][CSS] Left panel profile section done.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:37 +01:00
8b4148a00d
[TWIG][CSS] Register and Login styling done.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:37 +01:00
df44d92bb2
[CSS] Fixing poor responsiveness to main nav element hover animation.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:37 +01:00
021583ea05
[CSS][TWIG] Left panel HTML nesting to better aid screen readers.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:36 +01:00
4afaa6858b
[CSS][TWIG] Panels icons are now hidden on desktop view to stop possible inconsistencies on window resizing. Left Panel polish.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:36 +01:00
ab7d1b0370
[CSS][TWIG] Details element is now shown by default on larger screens, and hidden on smaller screens.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:36 +01:00
38225dfa6e
[CSS][TWIG] Timeline navigation is now a part of the left panel, this way more items could be displayed at a time. Left panel styling WIP.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:36 +01:00
154025090c
[TWIG] Microformats added to timeline, note's view and media. Should be backwards compatible as well.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:52:30 +01:00
8ec17086a0
[CSS] Fixed accessibility issues with header and panel elements. Left, instance and right elements are now properly ordered when focused.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:46:14 +01:00
18f2823e14
[CSS] Fixed incorrect Chromium based browsers improper main content view. Flex item order (shouldn't be a problem, but it was) and padding for the container class was the root issue.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:46:13 +01:00
7dd23f3f2c
[CSS] Main container 'order' attribute was somehow a problem in Chromium.
2021-07-28 11:46:13 +01:00
a34f0c2534
[CSS] Fixed top content margin.
2021-07-28 11:46:13 +01:00
7d15ec1620
[TWIG][CSS] Accessibility improvements, all general links provide proper feedback now. Base theme CSS progress, page now looks more as it should. Panels WIP.
2021-07-28 11:46:13 +01:00
2d253ee5ad
[TWIG][CSS][ICONS] New profile and notice creation panel, alternative text set correctly for header icons. WIP in base styling and panels.
2021-07-28 11:46:12 +01:00
c18879b02f
[TWIG][CSS] Found solution to show details content by default in desktop view. However, post_form is being rendered multiple times, it was already rendered in the Posting Component. Needs to be fixed.
2021-07-28 11:46:12 +01:00
a48e699133
[TWIG][CSS] Panels are now animated when shown, main content width as well as panel's is now correctly configured. WIP: displaying side panels by default when space is available, "details" element state cannot be manipulated through CSS only, need a better solution.
2021-07-28 11:46:12 +01:00
77675ea8c4
[TWIG][CSS] Panels functionality works as intended, size needs to be worked upon.
2021-07-28 11:46:11 +01:00
b7b69b549e
[TWIG][CSS] Complete HTML refactoring, now using details element instead of a checkbox trick per panel. Using a "grid" akin to IBM's Carbon design guidelines.
2021-07-28 11:46:11 +01:00
681f001f4e
[TWIG][CSS] Timeline WIP. Creating a notice is now done on the right panel. HTML structure improvements, such as the timeline divided from the navigation div.
2021-07-28 11:46:11 +01:00
c5e5708915
[TWIG][CSS] Base template structural refactoring to accommodate true canons of page construction. CSS WIP to reflect these changes.
...
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro >
2021-07-28 11:46:10 +01:00
86e92fedc2
[MEDIA][Thumbnail] Fix non-instantiated variable
2021-07-26 21:19:40 +01:00
8ef6aceb6a
[DOCS][Dev] Write paradigms
2021-07-26 20:38:23 +01:00
bf01e97533
[SECURITY] Remove aggressive normalization of nicknames. This will be moved to a plugin in the future and we'll open an RFC, as discussed
2021-07-26 17:12:42 +00:00
835a3c6701
[TOOLS] Fix pre commit hook to allow for partial file commits (git add -p/git reset -p)
2021-07-26 15:46:20 +00:00
cc0ef73799
[MEDIA][AttachmentThumbnail] Add mimetype to Entity
2021-07-22 21:17:23 +01:00
c3eda07521
[Media] EncoderPlugins should handle the views that concern them
...
Ensure the intended filetypes and mimetypes during Vips conversions (part 2)
Sanitize Attachments instead of Validate (part 2)
Various bug fixes
2021-07-22 21:10:45 +01:00
832a5c0bd9
[Media] Support any kind of thumbnails in the Core
...
Sanitize Attachments instead of Validate (part 1)
Ensure the intended filetypes and mimetypes during Vips conversions (part 1)
Various bug fixes
2021-07-22 21:10:45 +01:00
143ecea376
[Media] File quota should be triggered by the Core
2021-07-22 21:10:45 +01:00
0eebcdbd51
[POSTING] Make it possible for plugins to change the placeholder string
2021-07-22 13:02:09 +01:00
aada96beb7
[MEDIA] We need permissions to run chmod in directories
...
It's better to have in the filename data that we couldnt't otherwise rapidly retrieve
2021-07-22 12:32:52 +01:00
218bec1826
[MEDIA] Fix database misses on thumbnail retrieval
...
We were storing the real scaling values instead of the predictions, but the core is never able to pre-compute the real values generated by the encoding plugins so, we have to rely on our own aproximation function ported from v2
2021-07-20 23:47:27 +01:00
4d2131808a
[FILE][TemporaryFile] Fix various issues now that we also have Symfony's file abstractions
2021-07-20 23:46:18 +01:00
4ef400f509
[DOCS][Developer] Adopt a top-down approach
...
Minor corrections to the overview
2021-07-20 12:41:48 +01:00
086754d95b
[CORE][GNUsocial] Fix undefined property typo
2021-07-20 11:48:29 +01:00
5e9cd21db5
[DOCS][User][SysAdmin] Add thomask as an author as we're starting this from his unofficial docs
2021-07-20 11:48:07 +01:00
65c2c42790
[DOCS] Add designer book.
2021-07-20 10:56:51 +01:00
d6f31ad4b4
[DOCKER][nginx] Removing default nginx config through docker/nginx/domain.sh. The default config conflicts with 'localhost' server_name.
2021-07-20 10:56:51 +01:00
8f7e0f2131
[DOCS] Elaborate initial architecture page
2021-07-20 09:41:30 +01:00
3af3526b5c
[CORE] Proxies: constant HEADER_X_FORWARDED_ALL is deprecated
...
Give ENV preference over SERVER
2021-07-19 15:24:12 +01:00
a46140fc00
[UTIL] Add utility to flatten the result of note queries
2021-05-23 19:59:42 +00:00
eecef99372
[TESTS] Raise test coverage for App\Controller\Network to 100% and fixup related code
2021-05-23 19:56:45 +00:00
5543f65ce9
[UI] Remove margin in timeline container
2021-05-12 19:40:47 +00:00
818a31a690
[UTIL] Provide static access to current request and utilities in Common
2021-05-12 19:33:03 +00:00
9b862d6a26
[CORE] Throw more meaningfull error when method doesn't exist in Security and Entity
2021-05-12 15:44:09 +00:00
f8107c86c5
[TESTS] Raise App\Core\DB\DB test coverage to 100% and fix issues found
2021-05-11 21:04:15 +00:00
ce98e80836
[TESTS] Raise App\Core\DB\UpdateListener test coverage to 100%
2021-05-06 21:57:06 +00:00
75adf2e59f
[TESTS] Change relevant tests to use GNUsocialTestCase, so they can access all the needed features
2021-05-06 21:56:28 +00:00
31518f97ee
[CORE] Clarify message when calling non existent method in Entity
2021-05-06 21:54:50 +00:00
dab822037c
[TESTS] Merge datafixtures to allow for using the correct ID in notes, and add group_inbox
2021-05-06 21:54:50 +00:00
79644d1e2b
[TESTS] Add GNUsocialTestCase, which initializes our infrastructure when bootKernel is called
2021-05-06 21:54:50 +00:00
5f9b61f4bf
[AUTOGENERATED] Update autogenerated code
2021-05-05 16:03:03 +00:00
3a6a1b71d6
[TOOLS][TESTS] Add coverage ignore tag to autogenerated code
2021-05-05 15:56:03 +00:00
f25494cd83
[TOOLS][TESTS] Add a data fixture with example notes, for testing
2021-05-05 13:37:43 +00:00
b79c0595d5
[TESTS] Expand test coverage for App\Util\Forms\ArrayTransformer, App\Util\Notification and App\Twig\Runtime
2021-05-05 13:37:10 +00:00
33cdea87ee
[TWIG] Remove unused Twig function 'get_note_other_content'
2021-05-05 13:35:25 +00:00
c532fdb4c8
[TESTS] Add ignored files and folders to config
2021-05-05 13:34:32 +00:00
5cc82785c6
[TESTS] Raise App\Util\TemporaryFile test coverage to 100%
2021-05-05 12:46:29 +00:00
05fbcdefa8
[TOOLS][TESTS] Make tests run as www-data
2021-05-05 12:46:29 +00:00
dd218b04e9
[UTIL] Fix App\Util\TemporaryFile, adding default options and preventing warning on not enough permission
2021-05-05 12:46:17 +00:00
059ed1fa76
[TESTS] Raise test coverage for NicknameTest to 100%
2021-05-05 12:46:17 +00:00
f946da6f29
[TOOLS][TESTS] Add data fixtures, which populate the database with users used for testing
2021-05-05 12:46:08 +00:00
9e2037e086
[UTIL] Rename and rewrite isTaken to checkTaken
2021-05-05 12:46:08 +00:00
84399a76e3
[ENTITY] Add 'normalized_nickname' to GSActor, the result of Nickname::normalize, so we can make sure we don't have very similar nicknames duplicated
2021-05-05 12:46:08 +00:00
4f0bdade45
[DEPENDENCIES] Add doctrine/doctrine-fixtures-bundle, which allows populating the database in the testing environment
2021-05-05 12:46:08 +00:00
d5db350595
[TOOLS][TESTS] Adjust configuration for testing environment
2021-05-05 12:45:58 +00:00
f5fcfe628e
[TESTS] Raise App\Util\HTML test coverage to 100%
2021-05-02 21:02:43 +00:00
fde7b87c65
[TESTS] Raise App\Util\Bitmap test coverage to 100%
2021-05-02 20:47:15 +00:00
f841e5e0dd
[TESTS] Raise App\Util\Common test coverage to 100%
2021-05-02 20:42:25 +00:00
39ac043d59
[ENTITY] Add uniqueness constraint to Attachment::file_hash
2021-05-02 15:48:33 +00:00
041d19a22d
[ATTACHMENTS] Don't store an attachment if it's a dupplicate, reuse it
2021-05-02 15:48:33 +00:00
b99fab00e9
[UTILS][TemporaryFile] Change way TemporaryFile takes arguments and it's internal implementation
2021-05-02 15:48:33 +00:00
88e84f2dc5
[UTIL] Fix bugs found in App\Util\Formatting by tests
2021-05-02 15:28:56 +00:00
16055c7055
[TESTS] Add tests increasing coverage of App\Util\Formatting to 100%
2021-05-02 15:28:56 +00:00
15c406a348
[TESTS] Move testing container's DB and Redis to different ports, so it can be used at the same time as the regular containers
2021-05-02 15:28:56 +00:00
eff703ca21
[TESTS] Add test container with Xdebug and allow for generation of coverage reports with 'make test'
2021-05-02 13:31:04 +00:00
2e943293e6
[ATTACHMENTS] Do not create thumbnails for attachments with mimetype different from 'image|video'
2021-05-02 00:50:16 +01:00
6aea20db05
[Embed] Do not create AttachmenThumbnail
2021-05-02 00:49:10 +01:00
a5a2032e75
[ENTITY] Fix entity->has to access private properties with closure bindTo
2021-05-02 00:14:24 +01:00
c948ca6178
[CSS][Network] Minor fixes concerning attachment representation (centering and width)
2021-05-02 00:00:03 +01:00
676210f76a
[ATTACHMENTS] Follow URL redirects and don't duplicate attachments
2021-05-02 00:00:03 +01:00
af4b0113ba
[ATTACHMENTS] Respect config for smart crop
2021-05-02 00:00:03 +01:00
3f565442d2
[Posting] Don't sanitize on storage
...
We prefer to have the original input in database and sanitize on output when appropriate
2021-05-02 00:00:03 +01:00
4397d12fa4
[AUTOGENERATED] Update auto generated code
2021-05-02 00:00:03 +01:00
c58d7e470a
[CORE][ImageEncoder] Add width and height back in attachment entity and allow for differently sized thumbs
...
The strategy adopted involves predicting the thumb size as we did in v2 before having vips resize
2021-05-02 00:00:02 +01:00
5a40d1f3e3
[Embed] Fix some bugs and change AttachmentEmbed::url to ::media_url
2021-05-01 23:58:49 +01:00
ced6e236ce
[ATTACHMENTS][GSFile] Rename ValidateAndStore functions
2021-05-01 23:57:51 +01:00
d5a7f2122a
[Embed] Local config
2021-05-01 23:57:51 +01:00
d0d98a611d
[DEPENDENCIES] Add ext-curl
2021-05-01 23:57:51 +01:00
650bfec699
[ATTACHMENTS] In sendFile, check that file exists or show a custom exception
2021-05-01 13:02:14 +00:00
6d842d60c5
[ENTITY] Change foreign key definition to new format for cover and profile_color tables
2021-05-01 12:50:49 +00:00
e0e1dca0f0
[DOCUMENTATION] Add database diagram to developer documentation
2021-05-01 12:49:04 +00:00
6374e30475
[CSS][Network] Improve attachment representation
...
Part of why we have thumbnails with a specific size is so that they are in the proper theme size
2021-04-30 23:47:46 +01:00
0086d8dec4
[CSS][Left] Vertical scroll on left menu when it doesn't fit the screen
2021-04-30 23:43:34 +01:00
6910620d59
[CSS][Network] Fix horizontal menu on smaller screens
2021-04-30 23:40:32 +01:00
0629c1434d
[UTIL][Formatting] Add twigRenderFile
2021-04-30 23:08:08 +01:00
120571fa42
[DOCUMENTATION] Add high level code walkthrough to developer docs
2021-04-30 23:08:08 +01:00
d9a3ecb116
[Posting] Add missing default visibility option
2021-04-30 23:08:08 +01:00
1bf5e9d117
[ImageEncoder][FileQuota] Move quota enforcement to it's own plugin, so it can be easily shared and disabled
2021-04-30 23:08:08 +01:00
aa28251c11
[TEMPLATES] Fix identation
2021-04-30 23:08:08 +01:00
c2f6665cce
[AttachmentShowRelated] Move Attachment related to plugin
2021-04-30 23:08:08 +01:00
b196af5f36
[SECURITY] We can't really show a stream for this, was a nice concept, but not properly doable without requiring JS
2021-04-30 23:08:08 +01:00
ebfa0e2240
[Avatar][Embed] Change use of TemporaryFile::getPath to getRealPath
2021-04-30 23:08:08 +01:00
365a7b436f
[ImageEncoder] Implement attachment validation for images. This limits the maximum dimensions of the file, enforces a per file, per user and per user-month size quota and fixes the title if it's a filename, by replacing the extension to the new one
2021-04-30 23:08:08 +01:00
93e1e4b7a9
[ENTITY] Add field size to attachments, used for quota calculations
2021-04-30 23:08:08 +01:00
e5ee31a2fe
[UTIL] Add option for setting a file suffix on TemporaryFile constructor and add missing TemporaryFileException
2021-04-30 23:08:08 +01:00
e32d8711d6
[CONFIG] Add attachments/max_{width,height} config option, which is used as maximum dimensions when validating attachments
2021-04-30 23:08:08 +01:00
78a17425f9
[DEPENDENCIES] Add oroinc/doctrine-extensions, which provides cross database platform date functions
2021-04-30 23:08:08 +01:00
94b100dc06
[CSS] Refactor Right Panel style
2021-04-30 23:08:02 +01:00
75c494dca1
[TEMPLATES] Add dynamic blocks to right panel
2021-04-30 23:05:39 +01:00
f95b8ab226
[CSS] Fix invisible checkboxes
2021-04-29 20:36:50 +00:00
6819dd9fb7
[TEMPLATES] Minor refactoring, extending left was weird
2021-04-29 20:36:50 +00:00
c57a8481b1
[Avatar] Implement avatar deletion
2021-04-29 20:36:50 +00:00
ec0c551bb3
[AVATAR] Move avatar settings page to Avatar component
2021-04-29 18:14:49 +00:00
f17d4d2d92
[Embed] Use Formatting utilities rather than substr and such
2021-04-29 18:14:49 +00:00
255055d149
[Embed] Add docblock to handle function to pass pre-commit hook
2021-04-29 17:42:31 +01:00
55c4ad40cd
[ENTITY][GSActor] Fix getAvatarUrl method
2021-04-29 17:42:06 +01:00
5fbc079c55
[RIGHT] Introduce component abstraction
2021-04-29 17:40:19 +01:00
22c79db540
[VIEWS] Minor proofreading of templates and css
2021-04-29 17:08:09 +01:00
bb56b24d8f
[ATTACHMENTS] Restrict thumbnail generation to allowed sizes. Defaults to only configured sizes, but can be extended with the event 'GetAllowedThumbnailSizes'. The intention is to prevent DoS attacks, since handling a thumbnail request is a relatively slow process
2021-04-28 21:53:02 +00:00
b2841cb5fc
[UI] Fix 'hide_attachments is not defined' error
2021-04-28 21:50:55 +00:00
f264cd6125
[ATTACHMENTS] Add controller and templates for the attachment show page, which shows extra info about an attachment, such as related notes and tags
2021-04-28 21:25:35 +00:00
d49de9d35e
[CORE] Typo in GSFile and slight Twig weirdness in base template
2021-04-28 20:16:59 +00:00
7f765c530e
[Embed][ENTITY] Fix embed route and use attachment_view rather than _show. Rename Entity::have to Entity::has, because grammar
2021-04-28 20:15:43 +00:00
e699824b1d
[Embed] Fix plugin. Only attempt to show an image, if we have one
2021-04-28 15:03:17 +00:00
6da8cf7f14
[ATTACHMENTS] Add event 'AttachmentFileInfo' to allow a plugin to override the file displayed
2021-04-28 15:01:40 +00:00
e08767cec0
[UTIL] Fix remove affix utilities, so they only try to remove an affix if the string starts/ends with it
2021-04-28 15:00:04 +00:00
83415b7aa6
[CONFIG] Add attachment related parameters to default config
2021-04-28 14:59:04 +00:00
495e66f4ae
[AUTOGENERATED] Update autogenerated code
2021-04-27 21:24:48 +00:00
17ea4ecce1
[DB] Fix error in config/services.yaml where the wrong namespace was used for the UpdateListener
2021-04-27 21:23:47 +00:00
1d7375b9cb
[TOOLS] Use \DateTimeInterface rather than DateTimeInterface
2021-04-27 21:23:00 +00:00
0a69f6de8c
[AUTOGENERATED] Run bin/generate_entity_fields for the Embed plugin
2021-04-27 21:18:44 +00:00
72cd2e7a30
[Embed] Review and port v2 code
2021-04-27 20:56:50 +00:00
c6389c63b8
[ENTITY] Add meta method 'have*' to Entity base class, which checks if a field 'isset'
2021-04-27 20:56:13 +00:00
f388554166
[ATTACHMENTS][EVENT] Add onHashFile event, which can be used to deduplicate files
...
Currently, we simply hash the contents of the file with sha256, but in the future we can use something smarter,
which could find visual feature similarity between images
2021-04-27 20:53:59 +00:00
b4ad396cd1
[FORMATTING] Add utilities to remove affixes from strings
2021-04-27 20:52:12 +00:00
c3473e45d2
[DEPENDENCIES] Add 'embed/embed', 'nyholm/psr7' and 'symfony/dom-crawler'
2021-04-27 20:50:43 +00:00
075b495f5a
[ENTITY] Add utils to Attachment and AttachmentThumbnail to get the corresponding URL and html representation parameters
2021-04-27 18:10:18 +00:00
9b3ccac246
[UTIL] Add TemporaryFile class, courtesy of Alexei Sorokin from v2, a class that ensures files stored in /tmp are removed, as it doesn't happen in some cases
2021-04-27 18:10:18 +00:00
82d9326343
[PLUGINS] Remove scripts. These will need to be implemented with Commands
2021-04-27 18:10:18 +00:00
464406cccc
[Emebed] Add Embed plugin and initial cleanup
2021-04-27 18:10:18 +00:00
2782aa9924
[UI] Use event 'ShowAttachment' to permit plugins like Embed to alter the representation
2021-04-27 18:10:18 +00:00
1df7be7e8a
[UTIL] Add method to validate url
2021-04-27 18:10:18 +00:00
792a9f097c
[HTTPClient] Add utility functions for all HTTP methods
2021-04-27 18:10:18 +00:00
4649ee9e71
[DB] Make DB::findOneBy throw a different exception if two values are found
2021-04-27 18:10:18 +00:00
c1db9bd0a3
[Posting] Extract and store URLs from note content. Introduce 'AttachmentStoreNew' event
2021-04-25 21:20:28 +00:00
cc47cda3d1
[TESTS] Fix Nickname test
2021-04-23 15:38:26 +00:00
1503c98f26
[Favourite] Make twig event operate on array rather than string
2021-04-23 12:55:42 +00:00
b82658e345
[SECURITY][DB] Make user register 'atomic', by using a single transaction for inserting all objects, to avoid partial inserts
2021-04-23 12:54:25 +00:00
1bad2fa050
[TESTS] Fix wrong namespace in tests
2021-04-22 18:26:00 +00:00
926d0af663
[PLUGIN] Change base class from Module to Plugin for all plugins
2021-04-19 18:51:42 +00:00
0a7496de1e
[AVATAR] Display avatar rounded
2021-04-19 18:41:40 +00:00
9814baf192
[UI] Use thumbnail path for thumbs
2021-04-19 13:22:50 +01:00
5ec7717fa1
[ATTACHMENTS] Move thumbnail controller to core and cleanup
2021-04-19 13:22:50 +01:00
d316f9dd6f
[ImageEncoder] Change preferred type to always be WEBP
2021-04-19 13:22:50 +01:00
529ec19801
[AVATAR] Display avatar as round on the default theme
2021-04-19 13:22:50 +01:00
e105889a59
[AVATAR] Fix JS cropping script and save square image, in case other themes need it
2021-04-19 13:22:50 +01:00
c37a75cf7b
[ImageEncoder] Move DB::persist call to AttachmentThumbnail
2021-04-19 13:22:40 +01:00
a33a25983e
[ImageEncoder] Fix error when not providing a width and/or height
2021-04-19 13:22:26 +01:00
2f137f8b44
[ATTACHMENTS] Even more further refactoring
...
Introduce Encoder plugins Instead of abstract upload and thumb modules
Ported attachment routes. In v3 thumbnail depends on existing attachment
so route updated accordingly.
2021-04-19 13:22:04 +01:00
0f52638a80
[ATTACHMENTS] Further refactoring
...
Some key points:
- Components and Plugins shouldn't extend Module directly
- Avatars should be fetched via GSActor ID, not by nickname as that isn't unique
- Avatar now is a separate Component
- Common file utilities are now to be placed in Core\GSFile, this will
handle storage and trigger validation
- Some bug fixes
2021-04-19 13:21:32 +01:00
bbc2fe1b5a
[ENTITY] Cache AttachmentThumbnail query result
2021-04-16 20:28:39 +01:00
45a894c953
[Poll] Move tables from core to plugin
2021-04-16 20:28:39 +01:00
c8915df31e
[ImageThumbnail] Finish image thumbnailing functionality
2021-04-16 20:28:39 +01:00
f6dea6e162
[DB] Fix bug in custom criteria format wrangling
2021-04-16 20:28:39 +01:00
ec8ad1888a
[DEPENDENCIES] Add php-vips
2021-04-16 20:28:39 +01:00
8a280c349f
[TOOLS] In pre-commit hook, only run php-doc-check if some PHP file changed
2021-04-16 20:28:39 +01:00
cbb36c9531
[DOCKER] Add VIPS PHP extension to Docker build
2021-04-16 20:28:39 +01:00
acf5bd1ff5
[ImageThumbnail] Implement image resizing with Intervention/Image
2021-04-16 20:28:39 +01:00
6dd6491bee
[ImageThumbnail] Structure of plugin to generate thumbnails for image attachments
2021-04-16 20:28:39 +01:00
2f65311ae6
[DB] Allow DQL queries with table name rather than entity
2021-04-16 20:28:39 +01:00
cadd48922d
[CORE] Add functionality to App\Core\Controller to get and validate GET parameters
2021-04-16 20:28:39 +01:00
2232f28283
[Posting] Rename file to attachment and cache result of actor tag query
2021-04-16 20:28:39 +01:00
b639ce906c
[MEDIA] Rename File to Attachment
2021-04-16 20:28:39 +01:00
d6414e51a2
[CORE] Rename NoteScope to VisibilityScope, as it will be used for attachment visbility too
2021-04-16 20:28:39 +01:00
1fda65bc3d
[DB] Add table map which allows using table names rather than entities in Doctrine operations
2021-04-16 20:28:39 +01:00
a5505bf848
[AUTOGENERATED] Update autogenerated code
2021-04-16 20:28:39 +01:00
678d62781b
[Directory] Fixup directory plugin
2021-04-16 20:28:39 +01:00
b5ffe8a52b
[DOCUMENTATION] Three books instead of only one
...
The User one is intended to illustrate the various common use cases, possibilities regarding customization and introduce the existing functionalities.
The Administrator one explains the step by step of how to install and maintain a GNU social instance, be it as node of The Free Network or as an intranet social network in a company setting.
The Developer one starts by introducing the Modules system and architecture, then the plugin development process and finally the exciting internals of GNU social for those looking forward to make the most advanced contributions.
2021-04-16 20:28:23 +01:00
8e9da452c6
[MEDIA] Refactor File as Attachment
2021-04-16 20:27:33 +01:00
8fc2a83e3c
[CONFIG][TWIG] Move twig config to php code to add support for placing templates in modules (plugins and components)
2021-04-16 20:21:54 +01:00
f4e40002a4
[Directory] Move templates from core to plugin
2021-04-16 20:21:54 +01:00
8c6881f526
[COMPOSER][Media] Add example composer.json in plugins/Media
2021-04-16 20:21:54 +01:00
0802f7a9e3
[TWIG] Add way to launch events from TWIG, capture service and add way to render from a string
2021-04-16 20:21:54 +01:00
d95e51a030
[LEFT][EVENT] Add event allowing plugins to add links to the left panel
2021-04-16 20:21:54 +01:00
085a98cea3
[Favourite] Move table and left panel links to plugin
2021-04-16 20:21:54 +01:00
f7af76a1ba
[DEPENDENCIES] Add wikimedia/composer-merge-plugin
2021-04-16 20:21:54 +01:00
c5b26bcffb
[FAVOURITE] Temporary commit to fix exception in timeline
2021-04-16 20:21:54 +01:00
244cc8dae1
[Favourite] Move controller to plugin
2021-04-16 20:21:54 +01:00
520733888d
Rename FFmpeg to VideoThumbnail FIXME
2021-04-16 20:21:54 +01:00
a1cac40f6a
[MODULES] Introduce the concept of abstract modules to V3
...
Introduce placeholder for abstract upload and thumb modules
Temporarily supress some bugs
2021-04-16 20:21:54 +01:00
6bfea8a0df
[NETWORK] Fix big brain bug
2021-04-14 19:54:38 +00:00
ae29a9c00a
[ENTITY] Remove extraneous File_thumbnail.php file
2021-04-14 16:12:26 +00:00
5ddc551fd9
[SCRIPTS] pre-commit now has variables double quoted
2021-04-14 15:47:10 +00:00
764ff60c34
[INSTALL] Elaborate on localhost installation
2021-04-14 15:47:06 +00:00
ae91f75aeb
[FFmpeg] Copy FFmpeg plugin from v2
2021-04-14 15:44:45 +00:00
5d4f544a03
[TOOLS] Fix missing exported variable in bin/configure
2021-04-14 15:40:14 +00:00
efd2719481
[Embed][StoreRemoteMedia][Media] Copy and cleanup plugins from v2
2021-04-14 15:37:24 +00:00
66ed6fb658
[Media] Copy media subsystem from v2 and roughly structure it for v3
2021-04-14 15:37:24 +00:00
6606a72e67
[TOOLS][DOCKER] Make sure composer doesn't require interaction when installing
2021-04-14 15:37:24 +00:00
fc019d6a6e
[ActivityPub] Remove ActivityPub plugin until we're ready to work on it, as it needs significant work
2021-04-14 15:37:24 +00:00
6be1622fd0
[DB][FKEY] Temporarily disable foreign key mapping, as there seems to be a bug in doctrine, which is under investigation
2021-04-14 15:37:24 +00:00
d0fd0e6c6c
[DB] Remove unique constraint from GSActor.nickname and fix register and related functionality
2021-04-14 15:37:24 +00:00
079d230959
[NICKNAME] Don't throw when normalizing reserved nicknames
2021-04-14 15:37:24 +00:00
637c25d5fe
[WEB] Fix translations and small inconsistency when opening on web
2021-04-14 15:37:24 +00:00
051720a686
[TESTS] Add tests to all relevant methods under App\Util and fix errors that popup
2021-04-14 15:37:24 +00:00
f3c2048c62
[NICKNAME] Add nickname min length config and check it in Nickname::normalize
2021-04-14 15:37:24 +00:00
988c5af6d3
[DEPENDENCIES] Add jchook/phpunit-assert-throws and update dependencies
2021-04-14 15:37:24 +00:00
aa58c3520c
Duplicate src/Util/Exception/NicknameTooLongException.php history in src/Util/Exception/NicknameTooShortException.php history.
2021-04-14 15:37:24 +00:00
cafd9a39a0
[TESTS] Add tests of Common and fix small oddities that pop up
2021-04-14 15:37:24 +00:00
120011a2d0
[TESTS] Fix error when testing cold redis cache
2021-04-14 15:37:24 +00:00
c8b2ce6694
[TESTS] Add tests for the bitmap utility and fix implementation
2021-04-14 15:37:24 +00:00
b855dd00ac
[LOG] Only try to log if setup, so logs can be disabled, in tests, for instance
2021-04-14 15:37:24 +00:00
d082f4249c
CACHE] Fix cache implementation with the help of tests and remove premature optimization for non-redis list caching
...
This complicated the code significantly and likely didn't help that much, if at all. The recommended setup is using Redis, anyway, which is plenty optimized
2021-04-14 15:37:24 +00:00
f11f9040b1
[TESTS] Add App\Core\Cache test
2021-04-14 15:37:24 +00:00
27dbd5521a
[DEPENDENCIES] Update dependencies, including redis-polyfill, to be able to implement a test
2021-04-14 15:37:24 +00:00
4f3b797c80
[TESTS] Update PHPUnit configuration and upgrade to version 9.5
2021-04-14 15:37:23 +00:00
f5df7edc6c
[DOCKER][TOOLS] Add option to bin/configure to use a prebuilt PHP container ( https://hub.docker.com/repository/docker/gsocial/php )
2021-04-14 15:37:23 +00:00
99c4e8ded5
[TESTS] Fix deprecations
2021-04-14 15:37:23 +00:00
a8b599d213
[DOCKER] Fix default docker-compose file
2021-04-14 15:37:23 +00:00
ffaf5da984
[TESTS] Fix unkept unit tests
2021-04-14 15:37:23 +00:00
49fa11ba07
[TEST] Fix translation test
2021-04-14 15:37:23 +00:00
a1546a51cd
[DEPENDENCIES] Upgrade to Symfony 5.2 to get my upstream ICU translation feature
2021-04-14 15:37:23 +00:00
0f0851dbf3
[DOCUMENTATION] Add documentation on installing without docker and other topics
2021-04-14 15:37:23 +00:00
ef617819e0
[DOCUMENTATION] Add documentation on installing with Docker
2021-04-14 15:37:23 +00:00
636f8d1be9
[DOCTRINE][CONFIGURATION] Add new required Doctrine DBAL parameter, for testing environments
2021-04-14 15:37:23 +00:00
b8c73d2d2a
[DEPENDENCIES] Update all dependencies
2021-04-14 15:37:23 +00:00
b2aff4c75e
[DB] Fix Doctrine errors due to lack of column uniqueness
...
So, Doctrine doesn't like that `GSActorTag.tag` is not unique, even
though composite key `[tagger, tag]` is. `tag` can't unique, but
doctrine doesn't understand this. This seems like a Doctrine bug that
should be investigated. For now we'll just not mark it as a foreign
key
2021-04-14 15:37:23 +00:00
f912236114
[DOCKER][MAIL] Temporarily disable mail container
2021-04-14 15:37:23 +00:00
349df02f78
[DOCKER][MAIL] Update config and change the way mail docker handles it, so the edits aren't visible from the outside, polluting the git staging area
2021-04-14 15:37:23 +00:00
0a15ccab9b
[DOKER][MAIL][BOOTSTRAP] Make bootstrap generate separate certificates for the web root and the mail server
2021-04-14 15:37:23 +00:00
cfbb28f1ea
[DOCKER] Remove quotes from docker env files, as docker (or at least docker-compose) include them in the actual value
2021-04-14 15:37:23 +00:00
e008bf1863
[DB] Make Note.source reference NoteSource.code, the primary key
2021-04-14 15:37:23 +00:00
297d30706f
[DOCKER] Rename docker-compose.yaml, so there can still be a default one on the repo, while the previous name can be used by the configurator without having problems with git
2021-04-14 15:37:23 +00:00
2f570fcc2a
[TOOLS][DOCKER] Rewrite the configuration script to use whiptail/dialog, and refactor
2021-04-14 15:37:23 +00:00
Angelo D. Moura
ea6623f029
[UI][NOTE][MARKDOWN] Add markdown support to the notes
2021-04-14 15:37:23 +00:00
up201706832
ccf4480395
[REPLY] Fixed CSS for reply form, making it now usable
2021-04-14 15:37:23 +00:00
up201706832
98f072bc12
[AUTH][REMEMBER-ME] Changed name of column in rememberme_token database table to fix bug
2021-04-14 15:37:23 +00:00
Daniel
03aa46cf4e
[ProfileColor] Added profile color css
2021-04-14 15:37:23 +00:00
Daniel
4d0f87b91b
[ProfileColor] Visualize profile color
2021-04-14 15:37:23 +00:00
Daniel
a4fdb193bc
[ProfileColor] Added Profile Color entity, color form and db store/load to color settings controler
2021-04-14 15:37:23 +00:00
Daniel
9ea47c5385
[ProfileColor] Added plugin base, controller and settings template
2021-04-14 15:37:23 +00:00
Daniel
79f0615441
[REVERSEFAV] Added css to make Reverse favs label in one line
2021-04-14 15:37:23 +00:00
Daniel
7e215d9f9e
[REVERSEFAV] Fixed typo
2021-04-14 15:37:23 +00:00
Daniel
04b9c736a6
[REVERSEFAV] Added reverse favorourites stream/template
2021-04-14 15:37:23 +00:00
João Brandão
5e26359783
[UI][TIMELINES] Refactored query for public stream
2021-04-14 15:37:23 +00:00
Daniel
493476f408
[UI][TIMELINES] Fix undefined main_nav_tabs in logged out view
2021-04-14 15:37:23 +00:00
Angelo D. Moura
54fd7eda06
[Directory] Actors stream now includes a link to groups stream
2021-04-14 15:37:23 +00:00
Angelo D. Moura
f838dbe5f3
[Directory] Lint fix - missed a coma
2021-04-14 15:37:23 +00:00
Angelo D. Moura
793e1b0417
[Directory] Finished implementing groups stream as a plugin
2021-04-14 15:37:23 +00:00
Angelo D. Moura
66875e93f8
[Directory] Finished implementing groups stream using Directory plugin
2021-04-14 15:37:23 +00:00
Angelo D. Moura
08fe5fb23f
[Directory] Changed the route so the plugin Directory doesn't take over - query is not working for some reason
2021-04-14 15:37:23 +00:00
Angelo D. Moura
d4038cd520
[Directory] Added the route, controller and a blank template file - something is broken
2021-04-14 15:37:23 +00:00
Angelo D. Moura
f29b15924c
[Directory] Actors are now organized by nickname
2021-04-14 15:37:23 +00:00
Angelo D. Moura
f621e521f9
[Directory] Actors are no longer related with notes, and the logged in user now shows on the stream
2021-04-14 15:37:23 +00:00
Angelo D. Moura
b9622e4512
[Directory] Changed the title of the template and add a css rule for actor-bio
2021-04-14 15:37:23 +00:00
Angelo D. Moura
f67c41a7ac
[Directory] Almost finishied creating the /actors stream - problems with the css files
2021-04-14 15:37:23 +00:00
Angelo D. Moura
19be786da8
[Directory] Add the route, controller function, and blank template file
2021-04-14 15:37:23 +00:00
Daniel
e14efe86a4
[Directory] Add documentation
2021-04-14 15:37:23 +00:00
Daniel
a19b51f91e
[Directory] Moved /actors stream to directory plugin
2021-04-14 15:37:23 +00:00
Daniel
35d2bdfd5e
[Cover] Remove of cover form
2021-04-14 15:37:23 +00:00
Daniel
485607169f
[Cover] Added cover route verifications
2021-04-14 15:37:23 +00:00
Daniel
ee039ab2e9
[Cover] Removed commented code
2021-04-14 15:37:23 +00:00
Daniel
e2df8aec10
[Cover] Input restrictions, Code cleanup
2021-04-14 15:37:23 +00:00
Daniel
0d18615fd8
[Cover] Added cover css, changed cover settings route name
2021-04-14 15:37:23 +00:00
Daniel
4f69686968
[Cover] Added temporary css
2021-04-14 15:37:23 +00:00
Daniel
777b8b55fd
[Cover] Cover route, cover now renders
2021-04-14 15:37:23 +00:00
Daniel
7688cc39a8
[Cover] Added TWIG vars for profile plugins
2021-04-14 15:37:23 +00:00
Daniel
4fd33bf37f
[Cover] Added Cover Entity, updated form handler
...
Basically the same as the avatar
2021-04-14 15:37:23 +00:00
Daniel
3d3c560516
[Cover] Started implementing Cover plugin: base class, route, base templates, added tabs in profile template
2021-04-14 15:37:23 +00:00
Diogo Machado
1abc3e3e7d
[STATIC ANALYSIS] Started removal process for the errors found by PHPStan
2021-04-14 15:37:23 +00:00
Pastilhas
f1f4ad7ba7
[DOCKER][MAIL] Fixed hash command
...
Also added permissions to start.sh
2021-04-14 15:37:23 +00:00
margarida
66670ff220
[TOOLS][DOCKER] Add mail setup to configure
2021-04-14 15:37:23 +00:00
margarida
a5eca9f110
[TOOLS][DOCKER] Changed script to write docker-compose.yaml
2021-04-14 15:37:23 +00:00
margarida
f9b98f87a4
[TOOLS][DOCKER] Change dialog method to command substitution and redirection and add way of finding git's root
2021-04-14 15:37:23 +00:00
margarida
28b337f793
[TOOLS][DOCKER] Added input verfication
2021-04-14 15:37:23 +00:00
margarida
b02564e575
[TOOLS][DOCKER] Added first version of configuration shell script
2021-04-14 15:37:23 +00:00
João Brandão
850f1b327e
[UI] Visual restructure of login/register pages
2021-04-14 15:37:23 +00:00
João Brandão
b98db96c27
[UI] Show public stream on login/register pages
2021-04-14 15:37:23 +00:00
up201706832
49b0494f28
[UI] Extracted public stream on login/register pages to a twig template
2021-04-14 15:37:23 +00:00
João Brandão
27137b4762
[UI] Visual restructure of login/register pages
2021-04-14 15:37:23 +00:00
Pastilhas
81109c88c7
[DOCKER][MAIL] Fixed variable expansion in run
2021-04-14 15:37:23 +00:00
Pastilhas
748d86d6d3
[DOCKER][MAIL] Cleanup opendkim.conf
...
Also improved consistency in other files
2021-04-14 15:37:23 +00:00
Pastilhas
dde68b1d22
[DOCKER][MAIL] Removed unsued files, modified dovecot.conf
2021-04-14 15:37:23 +00:00
Pastilhas
a27e3593fa
[DOCKER][MAIL] User is now created on setup and Dockerfile
...
Continuation of previous commit
2021-04-14 15:37:23 +00:00
Pastilhas
aaa6585a1e
[DOCKER][MAIL] Removed unused config files and scripts
...
Now user is created on setup and dockerfile
2021-04-14 15:37:23 +00:00
Pastilhas
a3908a22ae
[DOCKER][MAIL] Substituted supervisord for s6
2021-04-14 15:37:23 +00:00
Pastilhas
0a5ac7cf7e
[DOCKER][MAIL] Moved and modified setup.sh
2021-04-14 15:37:23 +00:00
Pastilhas
7e99d5faa8
[DOCKER][MAIL] Switched named volume to shared volume and changed env vars to env file
2021-04-14 15:37:23 +00:00
Pastilhas
b43cc4f742
[DOCKER][MAIL] Improved exec.sh
2021-04-14 15:37:23 +00:00
Pastilhas
e99d8481b5
[DOCKER][MAIL] Fixed small bug with ssl certificates
2021-04-14 15:37:23 +00:00
Pastilhas
5950986a6f
[DOCKER][MAIL] Fixed small bugs in config and scripts
2021-04-14 15:37:23 +00:00
Pastilhas
c37f5a59b3
[DOCKER][MAIL] New config files
2021-04-14 15:37:23 +00:00
Pastilhas
92ffc5644f
[DOCKER][MAIL] Fused services into single container
2021-04-14 15:37:23 +00:00
Pastilhas
439ea2c182
[DOCKER][MAIL] Changed directory path
2021-04-14 15:37:23 +00:00
Pastilhas
27065e5ead
[DOCKER][MAIL] Setup docker mail server
2021-04-14 15:37:23 +00:00
Pastilhas
12cfb5006a
[DOCKER][MAIL] Added docker mailserver setup
2021-04-14 15:37:23 +00:00
Daniel
ac16b3eff1
[Poll] Removed/refactored unnecessary files, changed redirect to default parameters in new poll route
2021-04-14 15:37:23 +00:00
Daniel
696ebe60e0
[Poll] Restructured templates, added misssing poll related css
2021-04-14 15:37:23 +00:00
Daniel
168b7d313a
[Poll] Polls now have an associated note, poll templates, start_show_styles event, started css
2021-04-14 15:37:23 +00:00
Daniel
3a51d3ef89
[Poll] Started testing with note integration
2021-04-14 15:37:23 +00:00
Daniel
7c8dbccee2
[Poll] Added file headers
2021-04-14 15:37:23 +00:00
Daniel
7a925cd9a6
[Poll] Added modified param for Poll/Poll response, added PollTest
2021-04-14 15:37:23 +00:00
Daniel
0a1ea8749b
[Poll] Added variable num of options
...
not sure if it is the right way to do it
2021-04-14 15:37:23 +00:00
Daniel
8543c8c68e
[Poll] Added templates, response counting
2021-04-14 15:37:23 +00:00
Daniel
8bbeb79233
[Poll] Store poll response to DB
2021-04-14 15:37:23 +00:00
Daniel
4fcde940ff
[Poll] Added New Route, RespondPoll, Poll Response, PollResponseForm
2021-04-14 15:37:23 +00:00
Daniel
a98e3a32f9
[Poll] Fixed ShowPoll route, moved Poll Entity, created NewPollForm
...
Entity was temporarily moved to src/Entity in order to load from DB, since it is yet no possible to do that from Plugin
2021-04-14 15:37:23 +00:00
Daniel
a9c35def3f
[AUTOGENERATED][Poll] Add auto generated code for poll entity and new route
2021-04-14 15:37:23 +00:00
Daniel
b860c6bbb0
[Poll] Started porting Poll Plugin
2021-04-14 15:37:23 +00:00
margarida
03007194c8
[TOOLS][DOCKER] Added input verfication
2021-04-14 15:37:23 +00:00
margarida
b600dc0902
[TOOLS][DOCKER] Added first version of configuration shell script
2021-04-14 15:37:23 +00:00
Daniel
0868880d45
[TESTS] Added unit tests
2021-04-14 15:37:23 +00:00
Angelo D. Moura
5ec7e2e092
[TWIG] Moves the SVG custom function to an extension and change the test regex
2021-04-14 15:37:23 +00:00
Angelo D. Moura
b60185a97c
[TWIG][TESTS] Update IconsExtension test
2021-04-14 15:37:23 +00:00
Angelo D. Moura
cacd9a574d
[TWIG] Add SVG icon embed function
2021-04-14 15:37:23 +00:00
Diogo Machado
5a7b895476
[DB][TESTS] Implement Doctrine event listener to update timestamps on modification, and related tests
2021-04-14 15:37:23 +00:00
Daniel
630ef3e826
[FORM] Implement ActorArrayTransformer
2021-04-14 15:37:23 +00:00
bb4f5b88e7
[PLUGIN][Favourite] Move favourite table definition to inside the plugin, as it is now supported
2021-04-14 15:37:23 +00:00
23904f326d
[SchemaDef] Finish association mapping implementation
2021-04-14 15:37:23 +00:00
9b42f525e8
[DB][NoteLocation] Add missing multiplicity to column
2021-04-14 15:37:23 +00:00
9d12dde7c1
[DB] Fix typo in table definitions and fix name of GSActorCircle table
2021-04-14 15:37:23 +00:00
adb5cfbb72
[AUTOGENERATED][DB][File][GroupJoinQueue] Update autogenerated code and add select fields as specified in the previous commit
2021-04-14 15:37:23 +00:00
f8c47387c4
[DB] Change foreign key specification to new format
2021-04-14 15:37:23 +00:00
b337d6b2eb
[SCHEMADEF] Add preliminary support for foreign keys
2021-04-14 15:37:23 +00:00
f486656756
[DOCKER] Bump to PHP version 8
2021-04-14 15:37:23 +00:00
2c9bd3575b
[AUTOGENERATED] Update auto generated code in entities
2021-04-14 15:37:23 +00:00
e1941b6612
[TOOLS] Use GSActor rather than Gsactor in autogenerated code
2021-04-14 15:37:23 +00:00
256169a3c4
[GIT] Change my email to the new one in all files and bump copyright year
2021-04-14 15:37:23 +00:00
f51a772826
Add some missing documentation to ActivityPub
2021-04-14 15:37:23 +00:00
0d2cf6eaa6
[DB] Merge definition of SchemaDefDriver with SchemaDefPass for clarity
2021-04-14 15:37:23 +00:00
8a14222d51
[NETWORK][TreeNotes] Add TreeNotes plugin which takes over the responsibility of displaying a conversation as a tree, in order to reduce the number of queries
2021-04-14 15:37:23 +00:00
9c2a911dab
[Reply] Fix bug where wrong variable is used when replying to a note
2021-04-14 15:37:23 +00:00
Hugo Sales
cfc8af675f
[DEPENDENCIES] Update all dependencies
2021-04-14 15:37:23 +00:00
Hugo Sales
b1cb923036
Ensure group table name is quoted, as it's a reserved word in postgreSQL
2021-04-14 15:37:23 +00:00
Hugo Sales
ff1d6d9df8
Small update to php dockerfile
2021-04-14 15:37:23 +00:00
Hugo Sales
5c1b3b99f4
[DEPENDENCIES] Update dependencies
2021-04-14 15:37:23 +00:00
7e9ffbe033
[DOCUMENTATION] Add mdBook stub
2021-04-14 15:37:23 +00:00
Hugo Sales
38deea85e2
[CONFIGURATION] Remove the individual language settings from social.yaml, as these are not something that changes at runtime
2021-04-14 15:37:23 +00:00
Hugo Sales
91eb3354e3
[COMMAND] Change the way ListEventsCommand outputs the results to use the output interface and add some formatting
2021-04-14 15:37:23 +00:00
Hugo Sales
5cced1c9ed
[DOCUMENTATION][REFACTOR] Add documentation to all flagged function and do some small cleanup
2021-04-14 15:37:23 +00:00
Hugo Sales
9cc7b6adf5
[HOOKS] Update pre-commit script to check for missing documentation in functions
2021-04-14 15:37:23 +00:00
Hugo Sales
1f4f080bd2
[DEPENDENCIES] Update dependencies
2021-04-14 15:37:23 +00:00
Hugo Sales
8eb32add3a
[DEPENDENCIES] Update dependencies
2021-04-14 15:37:23 +00:00
Hugo Sales
fdaa89e3c9
[EVENT] Rename event names to camel case to make finding handlers easier
2021-04-14 15:37:23 +00:00
Hugo Sales
dd8fe29a98
[REGISTER] Add self follow when registering, fixing the '-1 followers' bug
2021-04-14 15:37:23 +00:00
Hugo Sales
ed9e4be6b2
[SETTINGS][NOTIFICATIONS] Fix error when displaying the user notification settings page
2021-04-14 15:37:23 +00:00
Hugo Sales
69202ce7a0
[Reply] Fix missing use statement
2021-04-14 15:37:23 +00:00
Hugo Sales
88ce4cbf80
[CONTROLLER] Fix use of undefined variable
2021-04-14 15:37:23 +00:00
Hugo Sales
4c021a2838
[POSTING] Fix missing use statement
2021-04-14 15:37:23 +00:00
Tiago Magalhaes
4050222bc8
[CORE] made configure script explicitly fail when bootstrap.env is not present
2021-04-14 15:37:23 +00:00
Hugo Sales
4b4da170f2
[CONFIG][CACHE] Move cache configuration from environment variables to the configuration file
2021-04-14 15:37:23 +00:00
Hugo Sales
8ef85e90e9
[UI] Make configured instance name show in UI, fix repeat icon
2021-04-14 15:37:23 +00:00
Hugo Sales
06e92344cc
[CONFIG] Various fixes to use new configuration format
2021-04-14 15:37:23 +00:00
Hugo Sales
a9944592c4
[CONFIG] Fix error on missing or empty local configuration
2021-04-14 15:37:23 +00:00
Hugo Sales
02c7bdf4f0
[CONFIG][DB] Remove config from the database, put it in yaml, so it can be baked into the container
2021-04-14 15:37:22 +00:00
Hugo Sales
b34307b74c
[DEPENDENCIES] Update dependencies
2021-04-14 15:37:22 +00:00
Hugo Sales
c43f25f4b8
[CSS][UI] Update CSS to fix reply note action (icon swap needed) and remove duplication
2021-04-14 15:37:22 +00:00
Hugo Sales
8547c54103
[CORE] Add missing use statement in module base class
2021-04-14 15:37:22 +00:00
Hugo Sales
db608ca3c1
[UTILS] Make bitmap not use a static class var and set object properties as lowercase
2021-04-14 15:37:22 +00:00
Hugo Sales
abc32ecc0e
[NoteAction] Refactor duplicated code out to base class
2021-04-14 15:37:22 +00:00
Hugo Sales
d7ff38fe24
[NOTE] Add isVisibleTo
2021-04-14 15:37:22 +00:00
Hugo Sales
4b84ef5183
[Directory] Add missing use statement
2021-04-14 15:37:22 +00:00
Hugo Sales
a7b7d487d7
POSTING remove REPLY route
2021-04-14 15:37:22 +00:00
Hugo Sales
7e7bfd1958
[EXCEPTION] Make findOne return NotFoundException
2021-04-14 15:37:22 +00:00
Hugo Sales
9f4a53dbbd
[EXCEPTION] Add base class to invalid form exception and add URL arguments to redirect exception
2021-04-14 15:37:22 +00:00
Hugo Sales
96415f8523
[SECURITY] Fix getRoles
2021-04-14 15:37:22 +00:00
Hugo Sales
e0672e559a
[MODULES] Fix module manager dev-mode rebuild
2021-04-14 15:37:22 +00:00
Hugo Sales
c8b6db650a
[UI] Only show note action buttons if a user is logged in
2021-04-14 15:37:22 +00:00
Hugo Sales
9ae31501cc
[Controller] Fix exception handler to recurse on the exception's previous (in some contexts, RedirectException gets wrapped)
2021-04-14 15:37:22 +00:00
Hugo Sales
1330c96681
[UTIL] Update bitmap base class, making using easier
2021-04-14 15:37:22 +00:00
Hugo Sales
774d7ffdf9
[Reply] Move reply functionality to a plugin
2021-04-14 15:37:22 +00:00
Hugo Sales
0492d71294
[NoteActions] Refactor note actions and fix bug in favourite
2021-04-14 15:37:22 +00:00
Hugo Sales
1c37eb7c72
[UI] Display error when submitted form is invalid
2021-04-14 15:37:22 +00:00
Hugo Sales
34fab45b6b
[MODULE][DB] Added support for loading entity definitions from modules
2021-04-14 15:37:22 +00:00
Hugo Sales
b1e49f67f4
FIXUP WITH DOCTRINE DEV
2021-04-14 15:37:22 +00:00
Hugo Sales
6926d70543
[Bridge] Replace zero dates with CURRENT_TIMESTAMP
2021-04-14 15:37:22 +00:00
Hugo Sales
09a1342588
[TOOLS] Add support for updating autocode in modules
2021-04-14 15:37:22 +00:00
Hugo Sales
ff96c2bb59
[AUTOGENERATED] Update autogenerated code in module entities
2021-04-14 15:37:22 +00:00
Hugo Sales
4ab7da32ce
[CONFIG][DEV][DOCTRINE] Add doctrine stacktrace tracking in dev mode
2021-04-14 15:37:22 +00:00
Hugo Sales
749bec5d52
[EXCEPTION][UI][UX] Add RedirectException, which can be thrown anywhere to redirect somewhere, and an exception handler
2021-04-14 15:37:22 +00:00
Hugo Sales
7a68ba4f05
[UI][NOTE] Add reply to in UI
2021-04-14 15:37:22 +00:00
Hugo Sales
3affbc3c78
[Posting] Fix form name and remove unused recycle route and controller
2021-04-14 15:37:22 +00:00
Hugo Sales
5663e5e58d
[Media] Add cache control directive to all files served
2021-04-14 15:37:22 +00:00
Hugo Sales
922c435e28
[Repeat][Favourite] Only display action buttons if logged in (instead of forcing login)
2021-04-14 15:37:22 +00:00
Hugo Sales
5c4be9d29e
[DB] Add rendered collumn to note table, so we can preserve microtags from other services
2021-04-14 15:37:22 +00:00
Hugo Sales
13fb9b4698
[DB] Fix local_user table to use a numeric id, since the username is editable
2021-04-14 15:37:22 +00:00
rainydaysavings
8e17dd1829
[TWIG] Improving view template structure
2021-04-14 15:37:22 +00:00
rainydaysavings
3a4d3fc1e2
[TWIG] Adding active rules
2021-04-14 15:37:22 +00:00
rainydaysavings
1f7e3a1d90
[UI] CSS polish all around
2021-04-14 15:37:22 +00:00
rainydaysavings
40aa4fa60e
[CONTROLLER][ROUTE] Favourites page initial query implementation and routing
2021-04-14 15:37:22 +00:00
rainydaysavings
aa4418e71a
[UI] Fixing Login CSS issues
2021-04-14 15:37:22 +00:00
Hugo Sales
76b8b29776
[UI][FEED] Fix scope in timelines; major rewrite of home timeline query, still missing scoping and paging
2021-04-14 15:37:22 +00:00
Hugo Sales
d862457623
[DB][DEFAULTS] Change attachment storage location from uploads to attachments
2021-04-14 15:37:22 +00:00
Hugo Sales
f6a40390e0
[DB] Rename notice to activity in notification table
2021-04-14 15:37:22 +00:00
Hugo Sales
1387eab434
[UI] Subtract self follow from total user follows
2021-04-14 15:37:22 +00:00
Hugo Sales
ca576981a3
[DB][NOTE] Update scope
2021-04-14 15:37:22 +00:00
Hugo Sales
5cf7050008
[Media] Display images and videos inline in notes
2021-04-14 15:37:22 +00:00
rainydaysavings
af3ed18d48
[UI][TWIG] Fixing note actions placement and size, more descriptive rules
2021-04-14 15:37:22 +00:00
Hugo Sales
54e8852fb7
[Posting] Fix posting form name and css
2021-04-14 15:37:22 +00:00
Hugo Sales
109b17b1f9
[FORM] Add names to forms
2021-04-14 15:37:22 +00:00
Hugo Sales
a129a6e368
[DB] Add Activity table, to store all known activity
2021-04-14 15:37:22 +00:00
Hugo Sales
736fb672a5
[EXCEPTION] Fix exceptions not being translated
2021-04-14 15:37:22 +00:00
Hugo Sales
7b467091d6
[DB] Add wrapper for making native queries
2021-04-14 15:37:22 +00:00
Hugo Sales
b364a51f80
[Directory] Add directory plugin, for listing people and groups
2021-04-14 15:37:22 +00:00
Hugo Sales
8f68d7deb4
[Posting] Add missing includes
2021-04-14 15:37:22 +00:00
rainydaysavings
b5b39b5f68
[UI] All radio buttons now look like they should
2021-04-14 15:37:22 +00:00
rainydaysavings
49cd0af021
[PLUGIN] Removing unnecessary labels
2021-04-14 15:37:22 +00:00
rainydaysavings
c423101c00
[TWIG] Making notes view more easily customizable
2021-04-14 15:37:22 +00:00
rainydaysavings
ebf6f8d735
[UI] Fixing note actions views
2021-04-14 15:37:22 +00:00
rainydaysavings
ce94d50043
[PLUGIN] Recycle initial implementation
2021-04-14 15:37:22 +00:00
rainydaysavings
0ed0d0470c
[Favourite] Add backend support for favourite
2021-04-14 15:37:22 +00:00
rainydaysavings
153c8d0d64
[DB] Temporarily add favourite entity in core, as plugins don't support them yet
2021-04-14 15:37:22 +00:00
Hugo Sales
75bc71f473
[DB] Add helper for removing entities
2021-04-14 15:37:22 +00:00
Hugo Sales
29f30a6932
[DB] Add support for calling methods with FQCN
2021-04-14 15:37:22 +00:00
rainydaysavings
f4e52f5e11
[TWIG] Various routes added
2021-04-14 15:37:22 +00:00
rainydaysavings
902a57d10f
[UI] Replies border fix and other minor fixes
2021-04-14 15:37:22 +00:00
rainydaysavings
928064c5ee
[CONTROLLER] Replies and network queries implemented
2021-04-14 15:37:22 +00:00
rainydaysavings
492f32c555
[COMPONENT][CONTROLLER][TWIG] Recycle component work
2021-04-14 15:37:22 +00:00
rainydaysavings
b0566e7b8c
[TWIG][UI] Replies CSS fixes
2021-04-14 15:37:22 +00:00
rainydaysavings
6d3dba17d2
[ROUTE] Network and replies routes added
2021-04-14 15:37:22 +00:00
rainydaysavings
2d1200e2e6
[COMPONENT] Favourite initial implementation
2021-04-14 15:37:22 +00:00
rainydaysavings
a2c40163f5
[UI] Fixing note actions placement
2021-04-14 15:37:22 +00:00
rainydaysavings
a51c546f8c
[UI] Responsiveness overall polish
2021-04-14 15:37:22 +00:00
rainydaysavings
b2c2e6b6c6
[UI] Browser compatibility improvements, various small fixes
2021-04-14 15:37:22 +00:00
rainydaysavings
fa0612c0d1
[UI] Checkboxes now display a custom tick
2021-04-14 15:37:22 +00:00
rainydaysavings
4d0028d95f
[TWIG] Timeline attachment form restructure
2021-04-14 15:37:22 +00:00
rainydaysavings
54c54990a4
[Controller] Attempting to fix home timeline query
2021-04-14 15:37:22 +00:00
rainydaysavings
930a9a99f2
[UI] No focus outlines by default
2021-04-14 15:37:22 +00:00
rainydaysavings
36aff803c6
[UI] Reply icon now shows accordingly, same for the replies themselves
2021-04-14 15:37:22 +00:00
rainydaysavings
b609932726
[UI] Custom and accessible checkboxes, radio buttons and normal buttons
2021-04-14 15:37:22 +00:00
rainydaysavings
8f7790fa3c
[COMPONENT] Fixing typo
2021-04-14 15:37:22 +00:00
Hugo Sales
e13e763d5c
[NOTE][UI] Add note replying and UI displaying
2021-04-14 15:37:22 +00:00
Hugo Sales
c0caf520b8
[CACHE] Fix bug in list caching
2021-04-14 15:37:22 +00:00
Hugo Sales
1c1ef7a572
[MODULE] Fix avatars not loading
2021-04-14 15:37:22 +00:00
Hugo Sales
fefee324b4
[DB][MODULES][ActivityPub] Cleanup table definitions
2021-04-14 15:37:22 +00:00
rainydaysavings
07178e6ffa
[TWIG] Timeline template rework
2021-04-14 15:37:22 +00:00
rainydaysavings
d96e4f9076
[ROUTE] Home timeline route url now shows accordingly as the user nickname
2021-04-14 15:37:22 +00:00
rainydaysavings
6445931493
[UI] Posting form re-styling
2021-04-14 15:37:22 +00:00
rainydaysavings
11d6c19d65
[CONTROLLER] Reply initial implementation
2021-04-14 15:37:22 +00:00
rainydaysavings
b9355b49f3
[COMPONENT] Posting form restructure and minor fixes
2021-04-14 15:37:22 +00:00
rainydaysavings
be86a05ddb
[TWIG] Timeline structure rework
2021-04-14 15:37:22 +00:00
rainydaysavings
79be38992f
[ROUTE] Home timeline added
2021-04-14 15:37:22 +00:00
rainydaysavings
6d92230c32
[CONTROLLER] Home timeline controller work
2021-04-14 15:37:22 +00:00
rainydaysavings
f5267a1975
[UI] Posting form styling work
2021-04-14 15:37:22 +00:00
rainydaysavings
5dbde32f01
[COMPONENT] Posting form now shows a random default string
2021-04-14 15:37:22 +00:00
rainydaysavings
655b5e36a4
[UI] Links removed since they are part of a plugin
2021-04-14 15:37:22 +00:00
rainydaysavings
a4c6fbbbd8
[UI] Post form new structure first styling implementation
2021-04-14 15:37:22 +00:00
rainydaysavings
1f89f3298c
[UI] Small border fix
2021-04-14 15:37:22 +00:00
rainydaysavings
f16fcb0200
[COMPONENTS] Small fix
2021-04-14 15:37:22 +00:00
rainydaysavings
253705f704
[UI][TWIG] Better, divided form rendring of the posting form
2021-04-14 15:37:22 +00:00
rainydaysavings
cf8c85f6ba
[UI] Small border radius problem fix
2021-04-14 15:37:22 +00:00
rainydaysavings
dec35a6aa1
[COMPONENT] Posts scope initial form
2021-04-14 15:37:22 +00:00
rainydaysavings
9442556c3e
[UI] Fixing login and register styling, refactoring
2021-04-14 15:37:22 +00:00
rainydaysavings
a761c4e11a
[UI] Fixing issue where notices wouldn't break text
2021-04-14 15:37:22 +00:00
rainydaysavings
fa40bfb8dc
[UI] Fixing static pages styling
2021-04-14 15:37:22 +00:00
rainydaysavings
27d292affd
[UI] Fixes to settings CSS
2021-04-14 15:37:22 +00:00
rainydaysavings
dc5992bebd
[UI] Finalizing timeline structure and CSS
2021-04-14 15:37:22 +00:00
rainydaysavings
3c06a1e24f
[UI] New reset CSS to deal with firefox's abysmal and evil defaults
2021-04-14 15:37:22 +00:00
Hugo Sales
84cfa65bc6
[ActivityPub] Initial cleanup, removing 'die' statements, and ignoring the subfolders
2021-04-14 15:37:22 +00:00
Hugo Sales
43665749bb
[UI][TWIG] Small UI cleanup and change twig 'active' function to check for starts with, rather than equals
2021-04-14 15:37:22 +00:00
Hugo Sales
57297aba56
[DB][MEDIA] Small database structure changes
2021-04-14 15:37:22 +00:00
Hugo Sales
9204213dbc
[MEDIA] Only try to get an avatar if a user is logged in
2021-04-14 15:37:22 +00:00
Hugo Sales
1b0cab6dc8
[UI][NOTE] Post and see attachments
2021-04-14 15:37:22 +00:00
Hugo Sales
9a0c64c3d1
[DEPENDENCY] Add tgalopin/html-sanitizer-bundle and transitively tgalopin/html-sanitizer
2021-04-14 15:37:22 +00:00
Hugo Sales
4b8e6bb198
[MEDIA][CACHE] Cache avatar queries and delete stale values; small refactoring
2021-04-14 15:37:22 +00:00
Hugo Sales
624aef0a8e
[UI][MEDIA] Add actor avatar in feed timeline
2021-04-14 15:37:22 +00:00
Hugo Sales
d66ec9d85c
[SECURITY] Fix error in user registering where password wasn't hashed
2021-04-14 15:37:22 +00:00
rainydaysavings
fc6bb1ddf6
[UI] Fixing timeline notice structure and CSS
2021-04-14 15:37:22 +00:00
rainydaysavings
475e78e13f
[UI] Fix left panel new dynamic components view
2021-04-14 15:37:22 +00:00
Hugo Sales
8ceeb6be80
[UI][SELFTAGS] Display 'none' if the user doesn't have selftags
2021-04-14 15:37:22 +00:00
Hugo Sales
f76bfca921
[UI][ACCOUNT][SETTINGS] Hack to fix error related to phone number, until a solution is found upstream
2021-04-14 15:37:22 +00:00
Hugo Sales
0758b84d2c
[UI][LEFT] Add # before selftags, and link
2021-04-14 15:37:22 +00:00
Hugo Sales
aab9212ffa
[UI][FAQ] Fix static pages
2021-04-14 15:37:22 +00:00
Hugo Sales
b3c5fe9e96
[CONTROLLER] Stop propagation of kernel.controller so notices aren't posted 5 times. Not sure why it happens otherwise
2021-04-14 15:37:22 +00:00
Hugo Sales
8ca49478ab
[WRAPPER][HTTPClient] Static wrapper around Symfony's HTTP Client
2021-04-14 15:37:22 +00:00
Hugo Sales
e142b90653
[DB][FOLLOW] Change Follow table
2021-04-14 15:37:22 +00:00
Hugo Sales
8276baecab
[UI][CACHE][DB] Add follow counts to left panel, caching the results; change follow table
2021-04-14 15:37:22 +00:00
Hugo Sales
b678ab2191
[UI][LEFT] Add link to settings on avatar and personal info
2021-04-14 15:37:22 +00:00
Hugo Sales
5ed2abaf64
[ENTITY] Add Entity base class to all entities
2021-04-14 15:37:22 +00:00
Hugo Sales
513a1e58b8
[MODULE][Left][UI][TAGS] Add Left module which handles fetching tags and followers, fix self tags
2021-04-14 15:37:22 +00:00
Hugo Sales
d86636ebd4
[DB][File] Remove timestamp, add actor_id
2021-04-14 15:37:22 +00:00
Hugo Sales
6d1fa10965
[DB][AVATAR] Remove extraneous slash
2021-04-14 15:37:22 +00:00
Hugo Sales
86bd1dbbbf
[DB][DEFAULTS] Add avatar/default
2021-04-14 15:37:22 +00:00
Hugo Sales
96aa98cbcf
[UserPanel] Fix upload of avatar
2021-04-14 15:37:22 +00:00
Hugo Sales
30deeaf4ef
[Media] Use utils
2021-04-14 15:37:22 +00:00
Hugo Sales
fe50909549
[DB] Add 'dql' method to wrap 'createQuery' and replace 'Gsactor' with 'GSActor'
2021-04-14 15:37:22 +00:00
Hugo Sales
651af27674
[Media] Move code from media.php to utils.php
2021-04-14 15:37:22 +00:00
Hugo Sales
75958fc9b4
[MODULE][Posting] Add Posting module, which handles notice posting
2021-04-14 15:37:22 +00:00
Hugo Sales
036b4480f3
[MEDIA] Move avatar fetching and adding to ouput to media component
2021-04-14 15:37:22 +00:00
Hugo Sales
d4813b4ce9
[UTIL][Common] Fix import
2021-04-14 15:37:22 +00:00
Hugo Sales
21be5199cc
[CONTROLLER][AdminPanel] Add missing use statement
2021-04-14 15:37:22 +00:00
Hugo Sales
8f43c12e22
[STREAM][NetworkPublic] Add skeleton of public timeline and posting
2021-04-14 15:37:22 +00:00
Hugo Sales
a752a5a07c
[UTIL][Common] Implement 'isSystemPath'
2021-04-14 15:37:22 +00:00
Hugo Sales
4945a1342f
[SECURITY] Wrap getUser in a try catch, in case the user doesn't exist
2021-04-14 15:37:22 +00:00
Hugo Sales
fd7e06bf18
[COMMAND] Fix 'bin/console doctrine:database:create' by only loading defaults if we have a connection
2021-04-14 15:37:22 +00:00
Hugo Sales
e2960aebcb
[DEPENDENCY] Update dependencies
2021-04-14 15:37:22 +00:00
Hugo Sales
5b11c26e79
[AUTOGENERATED] Update autogenerated code
2021-04-14 15:37:22 +00:00
Hugo Sales
a60c79c35d
[TOOLS] Fix bin/generate_entity_fields
2021-04-14 15:37:22 +00:00
Hugo Sales
0508886fc4
[CORE][DB] Fix uses of db tables after previous restructure
2021-04-14 15:37:22 +00:00
Hugo Sales
e0af29fd5e
[CORE] Data Representation and Modelling refactor
2021-04-14 15:37:22 +00:00
rainydaysavings
9fa363d9bf
[UI] Public feed responsive CSS work
2021-04-14 15:37:22 +00:00
rainydaysavings
c3a0b08c40
[UI] Responsive settings CSS work
2021-04-14 15:37:22 +00:00
rainydaysavings
b52d4faca7
[UI] Responsive base design polish
2021-04-14 15:37:22 +00:00
rainydaysavings
7d593366c7
[UI] Feed structure done, feed CSS work
2021-04-14 15:37:22 +00:00
rainydaysavings
4d00a0f6dd
[UI] Polishing design, settings pages
2021-04-14 15:37:22 +00:00
rainydaysavings
648a911055
[UI] Polishing base template
2021-04-14 15:37:22 +00:00
rainydaysavings
0d3a1cc14e
[UI] Left panel theme now looks like it should
2021-04-14 15:37:22 +00:00
rainydaysavings
c9b36b6030
[UI] Right panel checkbox size fix
2021-04-14 15:37:22 +00:00
rainydaysavings
52caf7cab1
[UI] Settings theme according to base theme
2021-04-14 15:37:22 +00:00
rainydaysavings
46d946f381
[UI] Complete base CSS overhaul and new theme
2021-04-14 15:37:22 +00:00
rainydaysavings
4568578e16
[UI] Right panel added
2021-04-14 15:37:22 +00:00
rainydaysavings
c0b6d8807f
[UI] Additional fixes to settings page
2021-04-14 15:37:22 +00:00
rainydaysavings
c25d33e38a
[UI] Small general settings CSS fixes
2021-04-14 15:37:22 +00:00
rainydaysavings
488247119a
[UI] Settings small fix
2021-04-14 15:37:22 +00:00
rainydaysavings
08c792fac7
[UI] Notification settings checkbox placement fix
2021-04-14 15:37:22 +00:00
Hugo Sales
e96c273351
[LocalUser] Fix missing extend
2021-04-14 15:37:22 +00:00
Hugo Sales
a20e95fd38
[ROUTES] Add redirect from root to main/all, link from header to root, and change parameter order on RouteLoader::connect
2021-04-14 15:37:22 +00:00
Hugo Sales
37f21b516d
[EXCEPTION] Add ServerException and inherit previous throwable
...
imported from v2/5ea5d3007563f76a77efbfb66936315441922542
2021-04-14 15:37:22 +00:00
Alexei Sorokin
690b8750c6
[DATABASE] Enable fulltext search by default
...
Also rename fulltext indices to more fitting names
Imported from v2/f84dbb369f01a1d4a9bc362d01cdd100cdc79313
2021-04-14 15:37:22 +00:00
Hugo Sales
459a60d789
[MEDIA][EXCEPTIONS] Fix errors and deprecations
2021-04-14 15:37:22 +00:00
Hugo Sales
56c4309cb8
[SECURITY] Refactor
2021-04-14 15:37:22 +00:00
Hugo Sales
d21d4f5cb1
[AVATAR] Update way avatar is sent, to use proper symfony responses, make config('site', 's_static_delivery') into a boolean
2021-04-14 15:37:22 +00:00
Hugo Sales
a498134b13
[AUTOGENERATED] Update autogenerated code
2021-04-14 15:37:22 +00:00
Hugo Sales
d91ab6f277
[TOOLS] Update generate_entity_fields
2021-04-14 15:37:22 +00:00
Hugo Sales
a5c97762e0
[AVATAR] Fixed avatar upload, added avatar inline download and updated template and base controller
2021-04-14 15:37:22 +00:00
Hugo Sales
d5e41ec099
[AVATAR] Handle avatar upload without js and save and validate uploaded files
2021-04-14 15:37:22 +00:00
Hugo Sales
9e45641b7b
[AUTOGENERATED] Update autogenerated code
2021-04-14 15:37:22 +00:00
Hugo Sales
b7300c6457
[DEPENDENCIES] Update dependencies
2021-04-14 15:37:22 +00:00
Hugo Sales
04258b6072
[JS] Whitespace cleanup
2021-04-14 15:37:22 +00:00
Hugo Sales
480904a4e3
[MEDIA][AVATAR] Handle avatar validation and storage
2021-04-14 15:37:22 +00:00
Hugo Sales
7635f455ab
[DB] Add entity base class to allow sharing methods such as 'create'
2021-04-14 15:37:22 +00:00
Hugo Sales
c06346ef31
[DB][FILE][AVATAR] Handle deleting files, change file and avatar tables
2021-04-14 15:37:22 +00:00
Hugo Sales
65d6204a01
[UI][SETTINGS] User notification settings with configurable transports (through plugins)
2021-04-14 15:37:22 +00:00
Hugo Sales
bdacd638c7
[PLUGIN] Remove Test plugin
2021-04-14 15:37:22 +00:00
Hugo Sales
b9a2badc31
[COMPONENT][PLUGIN] Move Email and XMPP notification handlers from components to plugins, so they can be disabled
2021-04-14 15:37:22 +00:00
Hugo Sales
be49bfa0c1
[COMPONENT] Remove 'post on status change' option for email transport
2021-04-14 15:37:22 +00:00
Hugo Sales
c1963438bc
[AUTOGENERATED] Update autogenerated code
2021-04-14 15:37:22 +00:00
rainydaysavings
19e4f120c0
[UI] Notifications settings styling finished
2021-04-14 15:37:22 +00:00
rainydaysavings
cc4a95fbd5
[UI] Notification settings styling progress
2021-04-14 15:37:22 +00:00
rainydaysavings
246bf30c41
[UI] Notification settings tabs functional
2021-04-14 15:37:22 +00:00
rainydaysavings
a71f54c6bf
[UI] Notifications settings page CSS work
2021-04-14 15:37:22 +00:00
rainydaysavings
e4db0eb9b9
[UI] Accessibility improvements all around
2021-04-14 15:37:22 +00:00
rainydaysavings
e1ff2a0ef1
[UI] Fixed issue where certain form element would be on top the left panel
2021-04-14 15:37:22 +00:00
rainydaysavings
3f98f8fecf
[ROUTES] Fix use statement
2021-04-14 15:37:22 +00:00
rainydaysavings
10010552e1
[JS][UI][AVATAR] JS cropping script
2021-04-14 15:37:22 +00:00
rainydaysavings
d38bf8ff4c
[UI] Cropping avatar as a circle, proper preview done
2021-04-14 15:37:22 +00:00
rainydaysavings
caab08b017
[CONTROLLER][UI] Avatar JS cropping added
2021-04-14 15:37:22 +00:00
rainydaysavings
85d8d9b268
[UI] Login and Register button fixes
2021-04-14 15:37:22 +00:00
rainydaysavings
a64a099d7d
[UI] Controller and Route for FAQ page created as well as basic template structure
2021-04-14 15:37:22 +00:00
rainydaysavings
2a75237c70
[UI] Settings pages routes and styling done.
2021-04-14 15:37:22 +00:00
Hugo Sales
d7801737f6
[COMPONENT][PLUGIN] Small refactor and add license
2021-04-14 15:37:22 +00:00
Hugo Sales
b2b0990bf6
[CONTROLLER][UI] Add notification settings form
2021-04-14 15:37:22 +00:00
Hugo Sales
ed84c1f8bf
[MODULE] Reload modules if modified, except in production environment
2021-04-14 15:37:22 +00:00
Hugo Sales
6567f10e69
[UTIL] Fix and rename arrayRemoveKeys
2021-04-14 15:37:22 +00:00
Hugo Sales
b2dbf9bc20
[CONFIG] Cleanup services.yaml config file
2021-04-14 15:37:21 +00:00
Hugo Sales
78929629f0
[FORMATTING] Update license header in SchemaDef compiler pass
2021-04-14 15:37:21 +00:00
Hugo Sales
7945a9c825
[EVENT][ROUTES] Add event to allow modules to add routes, 'add_route'
2021-04-14 15:37:21 +00:00
Hugo Sales
4c60aac8f8
[FRAMEWORK] Avoid double initializing the framework
2021-04-14 15:37:21 +00:00
Hugo Sales
d394f6fc9c
[EVENT] Fix event handler and rename events to snake_case
2021-04-14 15:37:21 +00:00
Hugo Sales
605a8919a7
[PLUGIN] Update example plugin
2021-04-14 15:37:21 +00:00
Hugo Sales
bfa3095137
[MODULE][COMPILER] Add compiler pass responsible for loading, instantiating and wiring enabled modules
2021-04-14 15:37:21 +00:00
Hugo Sales
0e401edac2
[MODULE] Added module base class
2021-04-14 15:37:21 +00:00
Hugo Sales
468d00d393
[COMMAND] Fix ListEvents command to properly display the callable
2021-04-14 15:37:21 +00:00
Hugo Sales
f5f10890b6
[COMPOSER][MODULE] Add autoloading rules for components and plugins
2021-04-14 15:37:21 +00:00
Hugo Sales
9b2db7608b
[MODULE] Renamed modules to components
2021-04-14 15:37:21 +00:00
Hugo Sales
0ca169aad2
[UTIL][FORM] Add form transformer array <--> string
2021-04-14 15:37:21 +00:00
Hugo Sales
9291bfbecb
[UTIL] Add Common::array_remove_keys
2021-04-14 15:37:21 +00:00
Hugo Sales
e620c20bb4
[UI][CONTROLLER] Work on tabbed notification settings panel
2021-04-14 15:37:21 +00:00
Hugo Sales
4b73024a57
[MAIL] Make mailserver a required service
2021-04-14 15:37:21 +00:00
Hugo Sales
b4e42d6562
[SECURITY] Ensure ARGON2 constants are defined, or throw exception
2021-04-14 15:37:21 +00:00
Hugo Sales
3934d403ef
[DEPENDENCY] Update dependencies
2021-04-14 15:37:21 +00:00
Hugo Sales
e571c62319
[UI][CONTROLLER] Refactor UserPanel to use the new Form::handle method and add placeholders in the password fields
2021-04-14 15:37:21 +00:00
Hugo Sales
9dffd1c93e
[DATABASE] Remove DATABASE::flush from Profile::setSelfTags
2021-04-14 15:37:21 +00:00
Hugo Sales
34890aff90
[FORMATTING] Add option to split a string to array by both a comma and a space
2021-04-14 15:37:21 +00:00
Hugo Sales
503fa2e537
[FORM] Add DataTransformer to and from array
2021-04-14 15:37:21 +00:00
Hugo Sales
e10e6644e3
[FORM] Add Form::handle which automagically creates a form, handles a request, and writes the data to the given entity and update Form::create to do some more magic as well
2021-04-14 15:37:21 +00:00
Hugo Sales
4d2770319e
[DATABASE][TOOLS] Update local_user to return the proper PhoneNumber type
2021-04-14 15:37:21 +00:00
Hugo Sales
0cba00ebbb
[CORE][SECURITY][UX] Save previous url on /register and /logout
2021-04-14 15:37:21 +00:00
rainydaysavings
6e52fd4c95
[CONTROLLER][UI] Fixing controller display errors, Settings CSS fixes
2021-04-14 15:37:21 +00:00
rainydaysavings
9a2ac34ba3
[UI][ROUTES][CONTROLLER] Fixing Settings navs and templates
2021-04-14 15:37:21 +00:00
rainydaysavings
e334ce9a55
[UI] Register and Login rework
2021-04-14 15:37:21 +00:00
rainydaysavings
b8a0d14fd5
[UI] Left panel fix
2021-04-14 15:37:21 +00:00
Hugo Sales
7b0f5ab576
[Controller] Update settings/avatar
2021-04-14 15:37:21 +00:00
Hugo Sales
e7f541219d
[DATABASE][TOOLS] Update local_user, SchemaDefDriver and bin/generate_entity_fields to use the phone_number type (which maps to a varchar 35 and does validation)
2021-04-14 15:37:21 +00:00
Hugo Sales
0bc59f1b9a
[UI] Update settings/account to reflect the current values
2021-04-14 15:37:21 +00:00
Hugo Sales
8088b78a24
[UI][ROUTES] s%settings/profile%settings/personal_info%
2021-04-14 15:37:21 +00:00
Hugo Sales
b98d01bd06
[CORE][UX] Save previous url to redirect back after registering
2021-04-14 15:37:21 +00:00
Hugo Sales
d0c999199b
[DEPENDENCY] Add odolbeau/phone-number-bundle
2021-04-14 15:37:21 +00:00
Hugo Sales
f907843d43
[UTIL][NICKNAME][FIX] Add self to constant
2021-04-14 15:37:21 +00:00
Hugo Sales
8aa1a3d05e
[UI][USERPANEL] Add prefilled fields, mark some as optional and handle self tags in the profile settings page
2021-04-14 15:37:21 +00:00
Hugo Sales
c91c385dec
[SELFTAGS] Add Profile::{set,get}SelfTags
2021-04-14 15:37:21 +00:00
Hugo Sales
2838aaad14
[FORM] Add Form::isRequired
2021-04-14 15:37:21 +00:00
Hugo Sales
d6a7843240
[DATABASE] Refactor DB.php and make findBy always return an array, instead of a doctrine collection
2021-04-14 15:37:21 +00:00
Hugo Sales
51f65edb55
[UTIL] Update Formatting::{toString,toArray} to allow spliting by either space or comma
2021-04-14 15:37:21 +00:00
Alexei Sorokin
256d57adaa
[SECURITY] Update way passwords are checked and update
2021-04-14 15:37:21 +00:00
rainydaysavings
6d6b1447f8
[TWIG][ROUTES] Footer links routes and pages added
2021-04-14 15:37:21 +00:00
rainydaysavings
801399218f
[UI][ROUTES] Footer links added
2021-04-14 15:37:21 +00:00
rainydaysavings
c2e69a06b0
[UI] Fixing problem due to Firefox's autofill filter
2021-04-14 15:37:21 +00:00
rainydaysavings
ae49f82580
[UI] Login template small fix
2021-04-14 15:37:21 +00:00
rainydaysavings
879666fab7
[UI] Left panel template and Login page CSS work done
2021-04-14 15:37:21 +00:00
Hugo Sales
81e45e3ace
[SECURITY][CONTROLLER] Remove unreachable code from the Security controller
2021-04-14 15:37:21 +00:00
Hugo Sales
107351a6b5
[CONTROLLER][ADMIN][CONFIG] Fix form to use static strings as keys and add labels seperately; convert input from string to appropriate type
2021-04-14 15:37:21 +00:00
Hugo Sales
292d98a33c
[LIB][Util] Update Common::setConfig to throw an exception if appropriate, add Formatting::{toString,toArray}
2021-04-14 15:37:21 +00:00
Hugo Sales
72ee91a8da
[I18N] Remove incomplete autogenerated translation file, to be fixed later
2021-04-14 15:37:21 +00:00
Hugo Sales
2eb61543d9
[AUTOGENERATED] Update all entity fields
2021-04-14 15:37:21 +00:00
Hugo Sales
60002df680
[SECURITY] Small refactor in Authenticator.php, to remove unused services
2021-04-14 15:37:21 +00:00
Hugo Sales
f081d58e2b
[USER][UI][AUTHENTICATION] Add registration form
2021-04-14 15:37:21 +00:00
Hugo Sales
13244c1e37
[UTIL][NICKNAME] Small refactor and remove the check between user nickname and group_alias, as these will have different semantics
2021-04-14 15:37:21 +00:00
Hugo Sales
71c9462d2e
[DATABASE] Fix typos in user_notification_prefs
2021-04-14 15:37:21 +00:00
Hugo Sales
c410f9b67a
[DATABASE] Fix typo in profile table and add a constructor
2021-04-14 15:37:21 +00:00
Hugo Sales
b4fb1569ce
[FORM][WRAPPER] Merge argument options, not replace
2021-04-14 15:37:21 +00:00
Hugo Sales
fdcedb8295
[DATABASE] Update LocalUser table to not have a numerical id, add is_email_verified and fix getProfile accordingly
2021-04-14 15:37:21 +00:00
Hugo Sales
39e3e8a04e
[MAILER][WRAPPER] Add mailer wrapper that respects the configuration
2021-04-14 15:37:21 +00:00
Hugo Sales
7bb3717673
[FIX] Fix bug in DATABASE.php, since findBy can return different types
2021-04-14 15:37:21 +00:00
Hugo Sales
8dcf563674
[TOOLS] Update generate fields script to output default values
2021-04-14 15:37:21 +00:00
Hugo Sales
a582cfe4f2
[DEPENDENCY] Add symfonycasts/verify-email-bundle
2021-04-14 15:37:21 +00:00
Hugo Sales
0af82054ff
[COMMON][SECURITY][WRAPPER] Added security service static wrapper and Common::getUser
2021-04-14 15:37:21 +00:00
Hugo Sales
f812d9142f
[CORE][ROUTES] Small refactor on entrypoint and RouteLoader
2021-04-14 15:37:21 +00:00
Hugo Sales
92ecb50cff
[TWIG] Add twig function to output the active tag if the current route matches a given one
2021-04-14 15:37:21 +00:00
Hugo Sales
1b2c308808
[CONTROLLER][ROUTES] Refactor the base Controller to not reinvent the wheel too much and rely on Symfony's events
2021-04-14 15:37:21 +00:00
Hugo Sales
0c448ee83f
[ROUTES] Change name of admin and settings routes and refactor the way they're specified
2021-04-14 15:37:21 +00:00
Hugo Sales
a075d35c8c
[CONTROLLER][ROUTES] Refactor controllers to use the new base class and remove controller from the class name
2021-04-14 15:37:21 +00:00
Hugo Sales
f26b488045
[NOTIFICATION][DATABASE] Update user notification prefs table, implementation of Notification and define a base class for notification transport
2021-04-14 15:37:21 +00:00
Hugo Sales
2fd81e218a
[CONTROLLER] Remove example enqueue
2021-04-14 15:37:21 +00:00
Hugo Sales
fc4d8bcf65
[DEFAULTS] Add password hashing algorithm default settings
2021-04-14 15:37:21 +00:00
Hugo Sales
0ef9223803
[LOGIN] Implement password checking and related systems
2021-04-14 15:37:21 +00:00
Hugo Sales
9bc186a072
[USER] Add UserRoles
2021-04-14 15:37:21 +00:00
Hugo Sales
70cb6d5d94
[DATABASE] Add role collumn to profile table
2021-04-14 15:37:21 +00:00
Hugo Sales
162a955f41
[UTIL] Update Common::config to ensure the values queried exist
2021-04-14 15:37:21 +00:00
Hugo Sales
aadb4832bc
[DEFAULTS][FIX] Fix logic error that kept reloading the table when the file wasn't modified
2021-04-14 15:37:21 +00:00
Hugo Sales
0e96ffe287
[UI][SESSION] Add login and logout pages
2021-04-14 15:37:21 +00:00
Hugo Sales
958d5bfe22
[LIB][Util] Remove Functional::arity as it got merged upstream as Functional\ary
2021-04-14 15:37:21 +00:00
Hugo Sales
c0ba6250aa
[LIB][Util] Make Common::config return the unserialized value instead of the entity
2021-04-14 15:37:21 +00:00
Hugo Sales
0a6b134f23
[CORE] Refactor GNUsocial.php so it initializes itself as a service
2021-04-14 15:37:21 +00:00
Hugo Sales
a7715fc9c3
[I18N] Remove support for context until it proves necessary, as it broke the code
2021-04-14 15:37:21 +00:00
Hugo Sales
b508fbe3b1
[TOOLS] Update shebang on scripts to use the correct php executable
2021-04-14 15:37:21 +00:00
Hugo Sales
9a9ac8b55f
[AUTOGENERATED] Update autogenerated code
2021-04-14 15:37:21 +00:00
Hugo Sales
adda4caea4
[DATABASE] Rename user table to local_user, since doctrine shits itself otherwise ._.
2021-04-14 15:37:21 +00:00
Hugo Sales
a7ff0ef506
[DEPENDENCY] Add symfony/config as a dependency
2021-04-14 15:37:21 +00:00
Hugo Sales
ee1c1bce80
[CONFIG] Change way configuration is done to use Symfony's system instead of environment vars
2021-04-14 15:37:21 +00:00
Hugo Sales
7b00ab4699
[CORE][I18n][DEFAULTS] Remove I18nHelper
2021-04-14 15:37:21 +00:00
Hugo Sales
df60e72fb3
[LIB][Util] Change methods in the Common class to camelCase, add isSystemPath (previously in Nickname.php)
2021-04-14 15:37:21 +00:00
Hugo Sales
d5b5d97bc1
[UTIL][NICKNAME] Import nickname utilities and exceptions from v2
2021-04-14 15:37:21 +00:00
Hugo Sales
640c4b2ca8
[DEFAULTS] Update default reserved usernames
2021-04-14 15:37:21 +00:00
Hugo Sales
11822cbed0
[DATABASE][WRAPPER] Add findBy method which allows finding entities with a complex expression
2021-04-14 15:37:21 +00:00
Hugo Sales
9fb74c2f27
[DATABASE] Re-import the local_group table, as it'll be used as per the new group semantics
2021-04-14 15:37:21 +00:00
rainydaysavings
f361a64ab5
[UI] Settings routes refactor, avatar and misc settings added.
2021-04-14 15:37:21 +00:00
rainydaysavings
a4934a4ef3
[UI][CONTROLLER][ROUTES] UserPanel account page form added, account page CSS work
2021-04-14 15:37:21 +00:00
rainydaysavings
46c63b3240
[UI] Fixed top header spacing issue, hamburger menu weird rendering
2021-04-14 15:37:21 +00:00
rainydaysavings
f77f56e1f2
[UI] FAQ pages markdown fixes
2021-04-14 15:37:21 +00:00
rainydaysavings
2f05f05dc9
[UI][CONTROLLER] Form help messages added, fixed checkbox trick hitbox
2021-04-14 15:37:21 +00:00
rainydaysavings
02b17049e3
[UI] Reset CSS added, small fixes all around
2021-04-14 15:37:21 +00:00
rainydaysavings
ee6791fe97
[UI] Settings page CSS redesign port completed
2021-04-14 15:37:21 +00:00
rainydaysavings
de5554f1e2
[UI][CONTROLLER][ROUTES] Corrected core action name, UserPanel CSS work
2021-04-14 15:37:21 +00:00
rainydaysavings
e1f9143cf5
[UI] Fixed FAQ template issues
2021-04-14 15:37:21 +00:00
rainydaysavings
4fd69b684a
[UI] Side panel animation added
2021-04-14 15:37:21 +00:00
rainydaysavings
c133565780
[UI] Redesign responsiveness work done
2021-04-14 15:37:21 +00:00
rainydaysavings
099be93420
[UI] Further work into new side panel design
2021-04-14 15:37:21 +00:00
rainydaysavings
43b7076ff8
[UI] Basic implementation of the new base design
2021-04-14 15:37:21 +00:00
rainydaysavings
49e33557e1
[UI] Polishing FAQ CSS
2021-04-14 15:37:21 +00:00
rainydaysavings
f16789f10e
[UI] Standardization of sizes and variable usage for faster theming
2021-04-14 15:37:21 +00:00
rainydaysavings
2b4540952e
[UI][CONTROLLER] Profile settings action functionality working
2021-04-14 15:37:21 +00:00
Hugo Sales
91ff4dbdec
[DATABASE][WRAPPER] Update DATABASE wrapper so entity names are provided without the namespace
2021-04-14 15:37:21 +00:00
Hugo Sales
4cc196a69a
[DOCKER] Add redis to the docker image
2021-04-14 15:37:21 +00:00
Hugo Sales
7cedbcd63f
[CACHE] Fix usage of the redis extension
2021-04-14 15:37:21 +00:00
Hugo Sales
ba7ad5fd28
[DOCKER] Fix redis extension build process to use LZ4 and add APCu
2021-04-14 15:37:21 +00:00
Hugo Sales
7ca22ecc1d
[DEPENDENCY] Add mock polyfill implementations of the redis and memcached extension
2021-04-14 15:37:21 +00:00
Hugo Sales
02a23a2aff
[CACHE][Redis] Add special support for redis (fixed size lists), set method and general fixes
2021-04-14 15:37:21 +00:00
Hugo Sales
47af6e85b8
[LIB][Util] Refactor and implement array indexing methods on RingBuffer
2021-04-14 15:37:21 +00:00
Hugo Sales
04b0d63d43
[DOCKER] Updated php image so redis is compiled with LZ4 compression available, as it's the fastest at decompressing and really fast at compressing. Read performance is more important, with this being used as a cache
2021-04-14 15:37:21 +00:00
Hugo Sales
62c9b56b3f
[CACHE] Add support for multiple pools with the syntax (as an example) SOCIAL_CACHE_ADAPTER='default=redis://localhost:6379,memcached://localhost:11211;db.config=apcu://'
2021-04-14 15:37:21 +00:00
Hugo Sales
155038a5c0
[DOCKER] Add msgpack and redis extensions to docker image
2021-04-14 15:37:21 +00:00
Hugo Sales
89ce298a3b
[DEFAULTS] Add modified time to config table (as value) and only reload the defaults if the file is newer
2021-04-14 15:37:21 +00:00
Hugo Sales
9563fb0af3
[CACHE] Extend the static wrapper to support working with lists in caches that don't natively support them
2021-04-14 15:37:21 +00:00
Hugo Sales
2c4fcaaf07
[LIB][Util] Add Ring Buffer data structure
2021-04-14 15:37:21 +00:00
Hugo Sales
3aaad123de
[DOCKER] Move certbot files to hidden folder, so it's ignored by GNU global
2021-04-14 15:37:21 +00:00
Hugo Sales
7a07b95240
[DEFAULTS][FIX] Fix defaults to use value from environment
2021-04-14 15:37:21 +00:00
Hugo Sales
e5babcd36e
[PHP][EXTENSION][POLYFILL] Add php-ds polyfill, which is used if the native extension is not available
2021-04-14 15:37:21 +00:00
Hugo Sales
1134fec173
[DOCKER][PHP][EXTENSION] Add PHP ds extension to docker PHP image
2021-04-14 15:37:21 +00:00
Hugo Sales
d2b44f4400
[TOOLS][configure] Fix to use quotation marks properly
2021-04-14 15:37:21 +00:00
Hugo Sales
aaba304ca8
[CACHE][WRAPPER] Fix cache wrapper
2021-04-14 15:37:21 +00:00
Hugo Sales
288f8363ae
[FORMATTING][DEFAULTS] Fix formatting and remove redundant config defaults
2021-04-14 15:37:21 +00:00
Hugo Sales
b09e1525eb
[CACHE][HTTP] Configure simple HTTP cache
2021-04-14 15:37:21 +00:00
Hugo Sales
9fadb73ea5
[CACHE] Add a static wrapper around symfony/cache
2021-04-14 15:37:21 +00:00
Hugo Sales
cf1483e6b5
[DEPENDENCY] Add symfony/cache as a dependency
2021-04-14 15:37:21 +00:00
Hugo Sales
b579842eb6
[LOG][WRAPPER] Refactor log wrapper
2021-04-14 15:37:21 +00:00
Hugo Sales
47ab835549
[QUEUE] Add queueing wrapper, default configuration and example usage
2021-04-14 15:37:21 +00:00
Hugo Sales
69341880d3
[DEPENDENCY] Add symfony/messenger as a dependency
2021-04-14 15:37:21 +00:00
Hugo Sales
e146ebc05b
[DATABASE] Delete queue_item table, as queueing will be handled by messenger
2021-04-14 15:37:21 +00:00
Hugo Sales
ceb5092b34
[CONTROLLER] Show dummy notices in main/all
2021-04-14 15:37:21 +00:00
Hugo Sales
17da1f7fb5
[MODULES] Make ModulesManager check if file exists
2021-04-14 15:37:21 +00:00
Hugo Sales
43e56c08f7
[CONTROLLER] Add Controller base class, which handles rendering templates if requested HTML or json, accordingly
2021-04-14 15:37:21 +00:00
Hugo Sales
6f9c70398b
[ROUTE] Fix routes, config_admin got deleted
2021-04-14 15:37:21 +00:00
Hugo Sales
8b9a1dd535
[COMMAND][DEPRECATION][FIX] Fix app:events's deprecation
2021-04-14 15:37:21 +00:00
Hugo Sales
c2d9d5b75b
[GIT] Update gitignore to ignore composer.local.json, where plugin settings will be placed
2021-04-14 15:37:21 +00:00
Hugo Sales
4fa6295fde
[DEPENDENCY] Update all dependencies
2021-04-14 15:37:21 +00:00
Hugo Sales
bf4c06295a
[DEPENDENCY] Add wikimedia/composer-merge-plugin as a dependency, to allow managing plugins
2021-04-14 15:37:21 +00:00
rainydaysavings
443a5438be
[DEPENDENCY] Add erusev/parsedown and twig/markdown-extra as dependencies
2021-04-14 15:37:21 +00:00
rainydaysavings
9b88f93cad
[TWIG][CONFIG] Change default_path and add public_path
2021-04-14 15:37:21 +00:00
rainydaysavings
d6196a5e69
[CONTROLLER] UserAdminPanel handle request fix
...
[UI] Minor CSS font size corrections
2021-04-14 15:37:21 +00:00
rainydaysavings
b39d43a700
[TWIG][UI] Settings: removed unnecessary pages, responsive CSS work
2021-04-14 15:37:21 +00:00
rainydaysavings
20497bf905
[UI][CONTROLLER] Settings page styling almost done.
2021-04-14 15:37:21 +00:00
rainydaysavings
fe20ed08d0
[TWIG] faq/contact template route fix
2021-04-14 15:37:21 +00:00
rainydaysavings
a87653860b
[FAQ] Removing unnecessary categories.
2021-04-14 15:37:21 +00:00
rainydaysavings
9f2977bfd1
[UI][FAQ] FAQ polish, better use of twig, responsive css.
2021-04-14 15:37:21 +00:00
rainydaysavings
1e8efe180c
[UI][Mobile][FAQ][ROUTES] FAQ sub pages and routing added, small screen css work started.
2021-04-14 15:37:21 +00:00
rainydaysavings
29712edbd3
[UI] Icon assets now work with Symfony asset component, header icon placement fixes
2021-04-14 15:37:21 +00:00
rainydaysavings
0211771d5f
[UI][ROUTES][CONTROLLER] Settings pages routes and styling done.
2021-04-14 15:37:21 +00:00
rainydaysavings
f100d33d94
[UI] Work started on profile settings page.
2021-04-14 15:37:21 +00:00
rainydaysavings
9a05f11b65
[UI][Header] New header implemented.
2021-04-14 15:37:21 +00:00
rainydaysavings
b28f3ffa19
[TWIG][UI] CSS refactoring, containerized twig blocks and settings initial work
2021-04-14 15:37:21 +00:00
rainydaysavings
168d138481
[TWIG] FAQ base template hierarchy fixes
...
Minor refactoring of routes for FAQ static pages
2021-04-14 15:37:21 +00:00
rainydaysavings
3daa764d87
[UI][ROUTES] Better use of icons, fixing static pages routing.
2021-04-14 15:37:21 +00:00
rainydaysavings
ff06671cd5
[UI][FAQ] Better FAQ organization, removing unnecessary categories.
2021-04-14 15:37:21 +00:00
rainydaysavings
5736bd1408
[UI][Mobile][FAQ] FAQ polish, better use of twig, responsive css.
2021-04-14 15:37:21 +00:00
rainydaysavings
999b31b615
[UI][Mobile][FAQ] FAQ sub pages and routing added, small screen css work started.
2021-04-14 15:37:21 +00:00
rainydaysavings
e925c566ac
[UI] SVG icons added
...
[TWIG][UI] Header completed
2021-04-14 15:37:21 +00:00
rainydaysavings
8faf299a23
[UI][FAQ] FAQ page progress, assets folder and assets added
2021-04-14 15:37:21 +00:00
rainydaysavings
2985284f2b
[UI][FAQ] Controller and Route for FAQ page created as well as basic template structure
2021-04-14 15:37:21 +00:00
Hugo Sales
2d1d697498
[TOOLS] Fix bootstrap and pre-commit scripts
2021-04-14 15:37:21 +00:00
Hugo Sales
57310dcb15
[MODULE] Move 'foreign' entities from core to a module
2021-04-14 15:37:21 +00:00
Hugo Sales
a574971f0b
[AUTOGENERATED] Update autogenerated code
2021-04-14 15:37:21 +00:00
Hugo Sales
68a5551f36
[TOOLS] Update bin/generate_entity_fields script
2021-04-14 15:37:21 +00:00
Hugo Sales
3a6b4cca1e
[CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified'
...
This commit is a port from v2's 9a515b9234 ([SCHEMA] Improve timestamp storage) to v3.
As explained by Alexei Sorokin:
Avoid the use of deprecated MariaDATABASE "zero dates" globally. If they're present
as attribute defaults somewhere, they will be replaced with NULL implicitly.
The existing "zero dates" in MariaDATABASE storage will be left intact and this
should not present any issues.
The "timestamp" type in table definitions now corresponds to DATETIME in
MariaDATABASE with "DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP", which
should be close enough to the original behaviour for compatibility purposes.
It is now the recommended type for "modified" attributes, because of the
update trigger on MariaDATABASE. But there is no such trigger implemented on
PostgreSQL as of this moment.
2021-04-14 15:37:21 +00:00
Hugo Sales
6fe35833e7
[CORE][DATABASE] Restructure the database
2021-04-14 15:37:21 +00:00
Hugo Sales
4b4f235481
[ROUTE][ADMIN][CONFIG] Add route to update values in the config table
2021-04-14 15:37:21 +00:00
Hugo Sales
6c0c84c284
[DEFAULTS] Small fixes and add check of SOCIAL_NO_RELOAD_DEFAULTS from the environment, to override the reloading of default values
2021-04-14 15:37:21 +00:00
Hugo Sales
26c966084a
[DOCUMENTATION] Fixed type annotations and documentation of Common::size_str_to_int
2021-04-14 15:37:21 +00:00
Hugo Sales
bf92c44d81
[CORE][Event] Move GSEvent to Event, no longer a name collision
2021-04-14 15:37:21 +00:00
Hugo Sales
07422c4e1a
[FORM] Added Symfony Form wrapper
2021-04-14 15:37:21 +00:00
Hugo Sales
6e6e50939b
[CORE][Symfony] Fixed deprecation resultant from Symfony 5.1 upgrade
...
User Deprecated: Since symfony/framework-bundle 5.1: Using type
"Symfony\Component\Routing\RouteCollectionBuilder" for argument 1 of
method "App\Kernel:configureRoutes()" is deprecated, use
"Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator"
instead.
2021-04-14 15:37:21 +00:00
Hugo Sales
0ecb164e2e
[TESTS][I18N] Added test for I18n::_m and I18nHelper::formatICU
2021-04-14 15:37:21 +00:00
Hugo Sales
15cf498e75
[I18N] Fix implementation of I18nHelper::formatICU
2021-04-14 15:37:21 +00:00
Hugo Sales
377965d100
[ROUTES] Add easier support for using TemplateController and improved documentation
2021-04-14 15:37:21 +00:00
Hugo Sales
c9b0e994c1
[I18N] Small fixes. Still broken, though :')
2021-04-14 15:37:21 +00:00
Hugo Sales
daf4f0727d
[AUTOLOAD] Always autoload _m file
2021-04-14 15:37:21 +00:00
Hugo Sales
652c3b5d62
[DEPENDENCY] Upgrade Symfony framework from 5.0 to 5.1
2021-04-14 15:37:21 +00:00
Hugo Sales
95764a0c48
[DEPENDENCY][DEV] Added Symfony Bridge PHPUnit
2021-04-14 15:37:21 +00:00
Hugo Sales
97e9991d85
[GIT] Updated gitignore
2021-04-14 15:37:21 +00:00
Hugo Sales
26be897578
[I18N] Overhaul _m() implementation to support ICU message formats
2021-04-14 15:37:21 +00:00
Hugo Sales
b15fb50194
[I18N] Dumped english translation files
2021-04-14 15:37:21 +00:00
Hugo Sales
d7218535dd
[TOOLS] Small fix to composer install hook
2021-04-14 15:37:21 +00:00
Hugo Sales
3108d82a4d
[I18N] Added ability to call _m_dynamic from any class, allowing it to define translations for dynamic-valued calls to _m
2021-04-14 15:37:21 +00:00
Hugo Sales
d5fa31a6f5
[TOOLS] Improve configure script to disallow reserved database names
2021-04-14 15:37:21 +00:00
Hugo Sales
a8cd9034ff
[I18N] Custom translation extractor based on Symfony's PhpExtractor, since we use instead of
2021-04-14 15:37:21 +00:00
Hugo Sales
d73840352b
[I18N] Refactor since rfc/use-static-function is not implemented
...
As the above mentioned RFC is not implemented, `_m` needs to be
outside of the I18n class, otherwise it would have to always be called
with `I18n::_m`.
2021-04-14 15:37:21 +00:00
Hugo Sales
766eac8467
[ROUTES] Add static wrapper around Symfony's router
2021-04-14 15:37:20 +00:00
Hugo Sales
0fe5ae7675
[CORE] Refactoring core
2021-04-14 15:37:20 +00:00
Hugo Sales
66c4ab7e24
[UI][CONFIG] Added admin configuration form
2021-04-14 15:37:20 +00:00
Hugo Sales
34f49edf2c
[I18N] Fix i18n and add default domain 'Core'
2021-04-14 15:37:20 +00:00
Hugo Sales
27bb76706c
[DEFAULTS] Fix default config loading logic
2021-04-14 15:37:20 +00:00
Hugo Sales
ce00acdb39
[TOOLS] Fixed all licence blocks, to use the same, foldable, format
2021-04-14 15:37:20 +00:00
Hugo Sales
e5a97611d0
[DEPENDENCY] Added alchemy/zippy, which adds support for multiple archive formats. Used to allow theme uploads in zip, tar, gz, or other formats
2021-04-14 15:37:20 +00:00
Hugo Sales
d2f49e56bc
[DOCUMENTATION][DEFAULTS] Documented all defaults and updated some. Restructured other documentation.
2021-04-14 15:37:20 +00:00
Hugo Sales
520989bc59
[DEFAULTS] Remove deprecated defaults and convert them to snake_case
2021-04-14 15:37:20 +00:00
Hugo Sales
2407853970
[GIT] Added docker-compose to gitignore, in preparation for using a script to generate them
2021-04-14 15:37:20 +00:00
Hugo Sales
ccc0d7d401
[DATABASE] Change the way defaults are loaded, bulk insert, reload everything in debug mode, only on http requests (not command line)
2021-04-14 15:37:20 +00:00
Hugo Sales
ac68436b0b
[TOOLS] Update install scripts
2021-04-14 15:37:20 +00:00
Hugo Sales
b0fece57ea
[DATABASE] Fix 'relation config doesn't exist'
2021-04-14 15:37:20 +00:00
Hugo Sales
7dda377a79
[DATABASE] Postgres doesn't understand '0000-00-00 00:00:00' for datetime, use '-infinity'
2021-04-14 15:37:20 +00:00
Hugo Sales
4a754553f7
[DOCKER] Change postgres data path to the correct one
2021-04-14 15:37:20 +00:00
Hugo Sales
074797384d
[DATABASE][CONFIG] Loading defaults into database, doctrine static wrapper
2021-04-14 15:37:20 +00:00
Hugo Sales
7718b167c3
[DATABASE][CONFIG] Bring default configs from V2 and implement DATABASE wrapper
2021-04-14 15:37:20 +00:00
Hugo Sales
a2f5b77ff0
[ASSETS] Import old favicon.ico
2021-04-14 15:37:20 +00:00
Hugo Sales
40ec37bd27
[CORE][UTIL] Moved classes from util to core
...
And splitted up Common
2021-04-14 15:37:20 +00:00
Hugo Sales
0d5f66e8b8
[FORMATTING] Cherry-pick of Diogo's 763ac735c0758624ebd5957993dc0676b865927a
2021-04-14 15:37:20 +00:00
Diogo Cordeiro
c67cf336d4
[DOCKER][BOOTSTRAP] Add option to use a self signed cert
2021-04-14 15:37:20 +00:00
Diogo Cordeiro
4efbf9361c
[DOCUMENTATION][TOOL] Small bug fixes and docblock elaboration
2021-04-14 15:37:20 +00:00
Hugo Sales
87a768ac8d
[CORE] Rename GNU social constants
2021-04-14 15:37:09 +00:00
Hugo Sales
26ee98a224
[DOCUMENTATION] Updated INSTALL.md to reflect the fact that a CNAME record can be used directly
2021-04-14 15:37:09 +00:00
Hugo Sales
5c1851028a
[DOCUMENTATION] Import installation instructions for installing without docker from V2
2021-04-14 15:37:09 +00:00
Hugo Sales
f0b8f91a75
[DOCKER] Small fixes to docker setup, imported from V2
2021-04-14 15:37:09 +00:00
Hugo Sales
70fac546da
[DOCUMENTATION] Added a code walkthrough document, which explains how the codebase works
2021-04-14 15:37:09 +00:00
Hugo Sales
80755fc6e2
[DOCUMENTATION] Added install documentation
2021-04-14 15:37:09 +00:00
Hugo Sales
feb3c16b3f
[TOOLS] Updated install script to also support mariadb
2021-04-14 15:37:09 +00:00
Hugo Sales
cef20e1332
[TOOLS][DOCKER] Further fixes in the docker environment and fixed the install script
2021-04-14 15:37:09 +00:00
Hugo Sales
3b50815422
[DOCKER] Fixed docker environment to properly configure the app environment
2021-04-14 15:37:09 +00:00
Hugo Sales
33270dabf3
[TOOLS] Added script to configure the installation and to bootstrap certificate creation with Let's Encrypt
2021-04-14 15:37:09 +00:00
Hugo Sales
a97c511c7a
[TOOLS][SSL] Added bin/boostrap_certificates.sh, allowing for easy configuration of SSL certificates with Let's Encrypt
2021-04-14 15:37:09 +00:00
Hugo Sales
3b5789639b
[TOOLS][DOCUMENTATION] Improvements to entity generation script
2021-04-14 15:36:35 +00:00
Hugo Sales
04a59d22a6
[DOCUMENTATION] Added generated diagram
2021-04-14 15:36:35 +00:00
Hugo Sales
cb1944aca9
[DOCUMENTATION][TOOLS] Wrote a tool to generate entity diagrams from the database definition
2021-04-14 15:36:35 +00:00
Hugo Sales
c2add5e1d1
[UTIL] Wrote HTML library to convert arrays to html
2021-04-14 15:36:35 +00:00
Hugo Sales
a72e0a53e7
[GITIGNORE] Add file folder to gitignore
2021-04-14 15:36:35 +00:00
Hugo Sales
3ad81ab730
[DATABASE] Changed the type of the 'id' field of the ProfileList table from serial to int, as doctrine complains otherwise
2021-04-14 15:36:35 +00:00
Hugo Sales
2afb15ee02
[TOOLS][CS-FIX] Altered some php-cs-fix rules
2021-04-14 15:36:35 +00:00
Hugo Sales
160b811669
[DATABASE][AUTOCODE] Update autocode to use \DateTimeInterface instead of DateTime
2021-04-14 15:36:35 +00:00
Hugo Sales
fe603928e2
[TOOLS] Fix the generate_entities_fields script
2021-04-14 15:36:35 +00:00
Hugo Sales
57298da60e
[SCHEMADEF] Bug fixes
2021-04-14 15:36:35 +00:00
Hugo Sales
d14ac1edf6
[DATABASE] Add missing table names
2021-04-14 15:36:35 +00:00
Hugo Sales
8ca49ab511
[MODULES] Fix small error in modules manager
2021-04-14 15:36:35 +00:00
Hugo Sales
04202b59ef
[DATABASE][AUTOCODE] Autogenerated fields, setters and getters for each entity
2021-04-14 15:36:35 +00:00
Hugo Sales
4bc3eabd29
[TOOLS][AUTOCODE] Fixed generate_entities script
2021-04-14 15:36:35 +00:00
Hugo Sales
36bc871c65
[TOOLS] Change autocode tag to allow editor folding
2021-04-14 15:36:35 +00:00
Hugo Sales
1589f6e26f
[DATABASE] Removed calls to common_config
2021-04-14 15:36:35 +00:00
Hugo Sales
b52f0c795e
[FORMATTING] Changed license block format to allow folding
2021-04-14 15:36:35 +00:00
Hugo Sales
8f13d331ad
[DATABASE] Extracted schemaDef method from old files and refactored onto new files
2021-04-14 15:36:35 +00:00
Hugo Sales
b46e3d5bf4
[COMMON] Added toCamelCase and toSnakeCase functions
2021-04-14 15:36:35 +00:00
Hugo Sales
8a8d0f1dcd
[TOOLS] Add script used to port from old class files to entities
2021-04-14 15:36:35 +00:00
Hugo Sales
e3ef58bd8e
[CORE][DATABASE] Import old classes folder into src/Entity
2021-04-14 15:36:35 +00:00
Hugo Sales
57f7f40fa9
[DATABASE] Remove testing entity
2021-04-14 15:36:35 +00:00
Hugo Sales
7e4aacd342
[TOOLS] Add command which imports a file with it's history
2021-04-14 15:36:35 +00:00
Hugo Sales
1caab62200
[MODULES] Rename extensions to modules, add example plugin, change plugin location
2021-04-14 15:36:35 +00:00
Hugo Sales
6c8da48efa
[DOCUMENTATION] Document All The Things!
2021-04-14 15:36:35 +00:00
Hugo Sales
10a304ab83
[CORE][ROUTES] Implemented custom router, with an interface similar to the old one, which allows routes to be seperated into files
2021-04-14 15:36:35 +00:00
Hugo Sales
a1d83bd2a8
[COMMAND][EVENTS] Added command to list events and handlers, and search by regex
2021-04-14 15:36:35 +00:00
Hugo Sales
df6da4d941
[CORE][COMMAND] Register internal structures on command event
2021-04-14 15:36:35 +00:00
Hugo Sales
d8d2ad3e10
[CORE][EXTENSIONS] Added extension (modules, plugins) loading and test plugin, which is able to handle events
2021-04-14 15:36:35 +00:00
Hugo Sales
2f5bdeed62
[CORE][SCHEMADEF] Clean up SchemaDef compiler pass
2021-04-14 15:36:35 +00:00
Hugo Sales
40b0812d9b
[CS-FIXER] Updated cs-fixer rules and added a temporary exception to the src/Entity folder (awaiting pr merge)
2021-04-14 15:36:35 +00:00
Hugo Sales
26ea268fed
[DOCTRINE][SCRIPT] Created a script to generate the class fields and accessors from the schema definition
2021-04-14 15:36:35 +00:00
Hugo Sales
04a5d2bfef
[DOCTRINE][SCHEMADEF] Small refactoring
2021-04-14 15:36:35 +00:00
Hugo Sales
06d76a649f
[CORE][DOCTRINE] Implement SchemaDefDriver, which transforms the old syntax from to doctrine's metadata
2021-04-14 15:36:35 +00:00
Hugo Sales
b0960c5345
[DOCTRINE] Configure cli-config for doctrine console and ensure DATABASE is set to UTF-8
2021-04-14 15:36:35 +00:00
Hugo Sales
6546c088d9
[DOCTRINE][SCHEMADEF] Create a new metadata driver to allow us to continue using static schemaDef functions
...
This has the benefit of requiring fewer code changes, as well as providing a better isolation
between GNU social and symfony, useful in case the framework needs to be changed
2021-04-14 15:36:35 +00:00
Hugo Sales
69550a1036
[COMPOSER] Update composer dependencies
2021-04-14 15:36:35 +00:00
Hugo Sales
027726205d
[CORE][I18N] Fix the translation system
2021-04-14 15:36:35 +00:00
Hugo Sales
4d2b8c26fa
[CORE][I18N] Port the translation system to rely on symfony's
2021-04-14 15:36:35 +00:00
Hugo Sales
cc47efe4b5
[CORE][EVENTS] Bring existing Events and Boostrapper back
...
- Adapt the existing event system to rely on Symfony's event dispatcher
2021-04-14 15:36:35 +00:00
Hugo Sales
c0e53ae658
[CORE][ROUTES] Example route
2021-04-14 15:36:35 +00:00
Hugo Sales
5ec23f2200
[DOCKER] Updated dockerfile to add memcached
2021-04-14 15:36:35 +00:00
Hugo Sales
51d1ea4f8f
[DOCKER] Added preliminary docker container
2021-04-14 15:36:35 +00:00
Hugo Sales
fff0ecd1cd
[COMPOSER] Update composer packages
2021-04-14 15:36:35 +00:00
Hugo Sales
86b5bfe075
[V3] Big Bang
...
Beginning anew, this time with a modern framework: symfony
2021-04-14 15:36:35 +00:00
f01331671c
[V3] Big Crunch
...
And so, just as it begins, so too must it end
One should not dwell and stall, for more is to come
2021-04-14 15:36:13 +00:00
b4b71f7626
[StoreRemoteMedia] Fix failing to show remote thumbnails on first load
...
imgPath onCreateFileImageThumbnailSource would throw FileNotFoundException
2021-04-13 14:58:55 +01:00
f088a3d54f
[Embed] Apply encoding and increased type strictness patches from StoreRemoteMedia
2021-04-13 14:55:45 +01:00
5b23781e68
[StoreRemoteMedia] Gracefully recover from poorly encoded images
2021-04-13 14:54:56 +01:00
edc9fd203d
[StoreRemoteMedia] Increase type strictness
2021-04-13 14:54:56 +01:00
844ecbf71e
[Embed] Revert defaults and fix Readme example
2021-02-21 20:20:48 +00:00
8570ad2094
[StoreRemoteMedia][SCRIPTS] Move removeRemoteMedia deleteRemoteMedia
2021-02-21 16:03:47 +00:00
bc3eb7bccc
[MEDIA] Allow thumbnail only entries
2021-02-21 16:03:47 +00:00
800c0daafe
[StoreRemoteMedia][SCRIPTS] Update removeRemoteMedia
2021-02-21 16:03:47 +00:00
9b1ccdc320
[SCRIPTS] Update clean_file_table
2021-02-21 16:03:47 +00:00
6c8e826028
[MEDIA][SCRIPTS] clean_thumbnails Allow to delete remote thumbs as well
...
If the sysadmin decides that StoreRemoteMedia plugin should store
original, then its thumbs will be regenerated as well, making it safe to
delete them if needed. Beware that Embed plugin never stores the original tho.
2021-02-21 16:03:46 +00:00
d47bb3736e
[Media] Document recently added settings and add some more
...
Fix some buggy ones, especially Embed crop
2021-02-21 16:03:46 +00:00
ec1719e61d
[StoreRemoteMedia][Embed] Bump plugins version
2021-02-21 16:03:46 +00:00
a657a7809a
[Media] Upload of previously uploaded files now works (bug fix)
...
This bug was introduced with the commit "[Media] Fix issues with database file storage"
due to the API change "File::getByHash now returns a yield of files".
I had updated this function on that commit but had missed this little detail.
2021-02-21 16:03:46 +00:00
ef0f65720e
[StoreRemoteMedia] Remote images are now stored exactly on the necessary size for the thumb
2021-02-21 16:03:46 +00:00
22b5dd8567
[Media] Fix several issues
...
[StoreRemoteMedia] Upgrade plugin to use the new Media system
API Changes:
- Added getters to File to better formalize the ideas of the commit "[Media] Fix issues with database file storage"
UI Changes:
- Now presented thumbnails are actual thumbnails (bug fix)
- Attachment actions have a slightly more extended behaviour
Many other minor bug fixes...
2021-02-21 16:03:46 +00:00
f9290705f8
[ActivityPub] Attachment fetch should happen on StoreRemoteMedia
2021-02-21 16:03:46 +00:00
e51520bd63
[Core] Add an event for StoreRemoteMedia and Embed
2021-02-21 16:03:46 +00:00
6028175bfc
[Media] Fix issues with database file storage
...
Fixed file quota as well.
There can be more than one file for the same filehash IF the url are different.
Possible states:
- A file with no url and with filename is a local file.
- A file with an url but no filename is a remote file that wasn't fetched,
not even the thumbnail.
- A file with an url and filename is a fetched remote file (maybe just a
thumbnail of it).
- A file with no filename nor url is a redirect.
Routes:
Given these states, updated routes so that an attachment can only be
retrieved by id and a file by filehash.
Major API changes:
File::getByHash now returns a yield of files
Major UI changes:
- Now remote non stored files are presented.
- /view became preferred
- Redirects to remote originals are preferred.
Many other minor bug fixes...
2021-02-21 16:03:46 +00:00
e9cd437668
[DOCUMENTATION] git clone with https so people don't need an account
2021-02-21 15:57:00 +00:00
aa153f2ee7
[i18n] Re-add gettext emulation
...
Removed by mistake with 9cc7df51d6#L50
2021-02-21 15:38:49 +00:00
b1e6b00545
[ActivityPub] Re-implement Delete Actor
2021-02-21 15:00:58 +00:00
Diogo Cordeiro
4f0ddc85d3
Merge branch 'ukrainian-translation-fix-branch' of tokarskiy/gnu-social into nightly
2020-12-31 11:20:15 +00:00
Andrew Tokarskiy
5d45702d5f
Added some ukr translations
2020-12-31 10:17:45 +02:00
Andrew Tokarskiy
d731a5cb09
Fixed some ukrainian translation errors
2020-12-30 20:00:00 +02:00
Alexei Sorokin
06dfd91a82
Various fixes
...
Fix OAuth and Realtime issues introduced in 9a515b9234
[DATABASE] Fix an empty default value mistake introduced in
fde929b151
[DATABASE][PostgreSQL] Avoid use of pg_constraint.consrc, which was removed in
PostgreSQL 12.
[DATABASE][MariaDB] Fix a typo introduced in aed2344bd4
[DAEMON] Wrap an assignment inside "switch":
a follow-up to adc689cb15
2020-10-11 18:29:47 +03:00
Alexei Sorokin
c540466147
[XMPP] Respond to ping and track time monotonically
...
This also fetches a necessary update from the XMPPHP upstream.
2020-09-27 00:16:08 +03:00
Alexei Sorokin
4d8b04cda9
Clear out potential duplicates when semi-joining a union
...
Using a left outer join as a semi-join is not a valid approach.
Can still be used for an anti-semi-join.
2020-09-21 22:25:33 +03:00
Alexei Sorokin
aed2344bd4
Set the character set before making a connection
...
Ideally the character set should be set with the connection, and so this is
exactly what's being done now.
And now the character set code is attempted to be generalised.
2020-09-16 19:34:49 +03:00
SENOO, Ken
c2508f8fa2
Change required MySQL database character set variable
...
Changing `character_set_server` requires root permissions and rebooting
the server.
Which is impossible on shared web hosting services.
So use `character_set_database`. This variable can be changed with
user permissions using `ALTER DATABASE`.
2020-09-16 17:14:58 +03:00
Alexei Sorokin
52d67b0f44
Avoid ordering just by a timestamp
...
Try to also employ an id when possible.
Involves reworking some of the indices.
2020-09-15 16:59:27 +03:00
Alexei Sorokin
8079a476b6
Remove "magic quotes" code and avoid wrong order implode
...
"Magic quotes" were removed in PHP 5.4, no need to mitigate it anymore.
Avoid implode() with the join()-like order of arguments which was deprecated
since PHP 7.4 and implicitly since PHP 5.3.
Also avoid implode() with an implicit separator for stylistic reasons.
mktime() with no arguments has been deprecated since PHP 5.1.
2020-09-15 14:59:27 +03:00
Alexei Sorokin
2ef944d5c4
[UTIL] Sanitise instead of validate in common_copy_args()
...
And remove common_validate_utf8() which is now unused.
2020-09-15 14:53:35 +03:00
Alexei Sorokin
fde929b151
[DATABASE] Switch from PEAR DB to MDB2
2020-09-14 22:46:29 +03:00
Alexei Sorokin
96f1cc1a5c
[ActivityPub][INBOX][Delete] Stop if the ID is not present
2020-09-14 21:32:41 +03:00
Alexei Sorokin
647bf8c953
[ActivityPub] Fix use of ActivityPubPlugin::pull_remote_profile
...
It does not throw but return null.
2020-09-14 20:48:10 +03:00
Alexei Sorokin
d2c7d70f49
Fix "Implement a class for automatic temporary file handling"
...
TemporaryFile::commit throws instead of returning a bool.
2020-09-14 20:37:48 +03:00
Alexei Sorokin
001629b6dd
[Memcached_DataObject] Do not encache on insert
...
This resulted in N=0 and empty "modified" in cache.
2020-09-14 20:19:17 +03:00
Alexei Sorokin
b04469a252
[DATABASE] Make sure the session always uses UTF-8 and UTC
2020-09-12 15:40:39 +03:00
Alexei Sorokin
54484e56e7
[API] Fix /api/statuses/update reporting a failure
2020-09-12 13:58:57 +03:00
Alexei Sorokin
adc689cb15
Avoid use of assignments bare inside statements
...
Either use them in a subroutine call or put parentheses around the assignment.
2020-09-08 12:42:51 +03:00
Alexei Sorokin
d0f96a7023
[Profile] Extend the allowed length of nicknames to 191 characters
2020-09-06 21:20:24 +03:00
Alexei Sorokin
08145f635f
Implement a class for automatic temporary file handling
...
And adopt it all over the code.
2020-09-04 13:15:23 +03:00
Alexei Sorokin
4884a97223
[Memcached_DataObject] Change how multiGet achieves an ordered result
...
The previous approach sent the key values twice, which for large sets is
twice as bad.
As an optional feature of this approach multiGet now allows retrieving tuples
in exact order and amount of the requested key values.
2020-09-03 18:11:12 +03:00
Alexei Sorokin
55136c1c6f
[DirectMessage] Simplify the inbox query
2020-09-02 15:12:20 +03:00
Alexei Sorokin
fc300607e5
[ActivityPub] Check if a Notice is public via CC as well
2020-09-01 01:20:13 +03:00
Diogo Cordeiro
8c20ed0c89
[ActivityPub] Fix note URIs
2020-08-31 22:18:49 +01:00
Diogo Cordeiro
c8e9cbdbb8
[ActivityPub] Tombstones now have datetimes
2020-08-30 01:59:38 +01:00
Diogo Cordeiro
3f70ac5cde
[TheFreeNetwork] Fix invalid index on lookup
2020-08-30 01:59:35 +01:00
Diogo Cordeiro
11a7182594
[ActivityPub] Implement Failed Queue
2020-08-29 20:32:21 +01:00
Diogo Cordeiro
817074a787
[ActivityPub] Fix DELETE
2020-08-29 20:32:18 +01:00
Diogo Cordeiro
c75bf1a19d
[ActivityPub] Fix issues concerning Activity URIs
...
And some other minor bugs.
2020-08-29 11:29:12 +01:00
Alexei Sorokin
11ebb98919
[DATABASE] Fix use of ORDER BY with DISTINCT
...
statuses/retweets_of_me has performance fixed, so it is also stripped of its
"bad query" status.
2020-08-27 11:15:39 +03:00
Diogo Cordeiro
e4093343c2
[ActivityPub] Revert moving Disfavor to Queues
...
It seems this kind of notice isn't queued?
2020-08-27 02:14:47 +01:00
Diogo Cordeiro
101ea554ef
[ActivityPub][Queues] Fix Like
2020-08-27 02:12:22 +01:00
Diogo Cordeiro
ef6a986dc6
[TheFreeNetwork] Do not allow lower priority protocols to handle remote actors already handled by the higher ones
2020-08-27 01:32:15 +01:00
Alexei Sorokin
db593496a7
[Directory] Fix SQL string quotation
2020-08-26 16:27:35 +03:00
Alexei Sorokin
00c492891e
[Foreign_link] Change the type of "credentials" to blob
...
TwitterOAuthClient::packToken uses \0 as a delimeter which can cause issues on
TEXT or VARCHAR.
2020-08-25 16:06:37 +03:00
Alexei Sorokin
0e81f9c726
[OpenID] Correct table definition types
...
"server_url" should not be blob.
Lengths are adjusted to Auth/OpenID/(PostgreSQL|MySQL)Store.php.
2020-08-24 16:27:44 +03:00
Alexei Sorokin
b419c5cf7c
[Queue_item] Let DataObject construct WHERE IN
2020-08-24 16:16:00 +03:00
Alexei Sorokin
20e5a6d1f3
[TwitterBridge][DAEMONS] Fix database connection clean-up
2020-08-24 15:43:14 +03:00
Alexei Sorokin
99a9a5d850
[NOTICES] Condition pushdown in the subquery in inboxnoticestream
...
This improves performance on PostgreSQL.
2020-08-19 19:14:11 +03:00
Alexei Sorokin
a15d51c3d8
[DATABASE][PostgreSQL] Ignore index prefix length
2020-08-17 17:01:42 +03:00
Alexei Sorokin
b01974b665
[PostgreSQL] Set timezone to UTC
...
And remove some redundant neighbouring cruft:
utf8mb4 is already set in mysqlschema more than enough times.
2020-08-17 16:52:11 +03:00
Alexei Sorokin
be5bec9887
Rename the mysql_foreign_keys option to foreign_keys
...
And apply it universally.
2020-08-17 14:12:49 +03:00
Alexei Sorokin
27045f03f5
[SESSION] Session ID can be as long as 128 characters
2020-08-17 13:58:19 +03:00
Alexei Sorokin
071baf04fd
[NOTICE] Store "url" as TEXT and not VARCHAR(191)
2020-08-17 13:35:16 +03:00
Alexei Sorokin
341e34b766
[DATABASE] Change collation handling
...
Before now table definitions could define collations only for MariaDB using the
MariaDB's collation names directly.
Now instead definitions get a slightly more abstract collation name syntax, but
only supporting the collations utf8mb4_bin and utf8mb4_unicode_(cs|ci) (wrapped
as utf8_bin, utf8_general_(cs|ci)), because those are the ones that have
practical use for GNU social.
Which also means that on MariaDB the formerly used utf8mb4_general_(cs|ci) have
been superseded by utf8mb4_unicode_(cs|ci), as they are the more modern
replacement.
Introduce collation support on PostgreSQL which results in use of the C (POSIX)
collation as utf8_bin and the und-x-icu collation as utf8_general_cs.
utf8_general_ci is also mapped to und-x-icu, which makes it case-sensitive,
unfortunately.
2020-08-16 23:41:28 +03:00
Alexei Sorokin
5c21816b22
[SEARCH][PostgreSQL] Make LIKE search case-insensitive
2020-08-16 19:05:47 +03:00
Alexei Sorokin
afd18db381
[TwitterBridge] Create Foreign_user before Foreign_link
...
To keep foreign key constraints intact.
2020-08-13 23:59:40 +03:00
Alexei Sorokin
6c8cd4c9f8
[SEARCH][MariaDB] Change user-facing fulltext search syntax
...
Now analogous to the simple and safe PostgreSQL's websearch_to_tsquery syntax.
MariaDB's full-text boolean search queries will fail on input such as "@user"
(unquoted) which is particularly noticeable to the user.
2020-08-13 23:44:59 +03:00
Alexei Sorokin
255d395f1d
[SEARCH] Exclude message scope
2020-08-13 22:59:41 +03:00
tenma
2f845e98e8
[FFmpeg] Add FFmpeg plugin
...
FFmpeg plugin serves as a better performant/quality alternative to
resize animated GIFs than the ImageMagick plugin.
2020-08-14 23:32:15 +01:00
tenma
1371e3efb8
[MEDIA] Add WebP support
...
WebP format is now the default image format for anything that
is not an animated GIF. Image Intervention doesn't support
animated WebPs so we don't convert animated GIFs.
ImageFile:
MediaFile:
default:
- Add WebP support
2020-08-14 19:48:02 +01:00
tenma
8a2c1658a8
[ImageMagick] Remove unnecessary code
...
ImageMagickPlugin:
- Remove animated thumbnail setting, we'll be able to use FFmpeg for performance
- Remove onFillImageFileMetadata and onCreateFileImageThumbnailSource(), these
are handled just fine by ImageFile
- Bump minor version number
README:
- Update
2020-08-14 19:48:02 +01:00
Alexei Sorokin
b65c200922
[File] Fix file deletion violating foreign keys
2020-08-13 23:56:31 +03:00
Alexei Sorokin
33caf31237
[RedisCache] Connections should not be shared by daemon threads
2020-08-13 22:51:22 +03:00
Alexei Sorokin
cb7effca05
[Memcached] Do not set persistent connections for daemons
2020-08-13 22:51:22 +03:00
Alexei Sorokin
8745a3e824
[Embed] Fix a query typo in fixup_files.php
...
Regression introduced in ec86de2bc4
2020-08-13 22:51:22 +03:00
Alexei Sorokin
ac6510d481
[Memcached_DataObject] Thorough check of pivotGetClass arguments
2020-08-12 13:50:39 +03:00
Alexei Sorokin
2109c7b830
[Bookmark] Silence a warning when no tags in BookmarkForm
2020-08-12 13:19:59 +03:00
Alexei Sorokin
629857d3ef
[Bookmark] Fix undefined variable "rendered" in Activity options
2020-08-12 13:12:36 +03:00
Alexei Sorokin
60eed202dd
[EXTLIB][VALIDATE] Declare everything as static
...
As was originally intended by the author and is expected.
2020-08-12 12:08:54 +03:00
Alexei Sorokin
14e2621a05
[RSSCloud] Avoid the deprecated in PHP each() function
2020-08-11 19:40:46 +03:00
Alexei Sorokin
99da7963d1
[Managed_DataObject] Remove the "timestamp" type
...
It is converted to "datetime" in lib/database/schema.php
2020-08-11 18:30:12 +03:00
Alexei Sorokin
2abe910ff5
[RSSCloud] Update schema definition
2020-08-11 18:23:45 +03:00
Alexei Sorokin
15f7941daf
[Profile] Allow grantRole to work when role exists
2020-08-11 15:00:57 +03:00
Alexei Sorokin
535b87bb64
[RedisCache][DiskCache] Check if unserialize succeeded
2020-08-10 11:12:31 +03:00
Alexei Sorokin
e63c0d1b03
[TwitterBridge] Check if Notice::$lat and Notice::$lon are defined
2020-08-10 10:35:45 +03:00
Alexei Sorokin
8bc714a2b1
[DATABASE][MariaDB] Always use LONGBLOB for "blob"
...
"blob" is practically used with the expectation of unlimited length, which is
true with PostgreSQL's bytea, but not with MariaDB's BLOB, which is limited to
64KiB.
So instead use LONGBLOB, which has a maximum of 4GiB, effectively unlimited.
2020-08-10 10:55:59 +03:00
Alexei Sorokin
07b0aa8f52
[DATABASE] Fix remaining misuses of SQL's GROUP BY
2020-08-10 19:29:04 +03:00
Alexei Sorokin
ce665baa88
[Queue_item] There is no "modified" attribute
...
Fixes a regression introduced in ec86de2bc4
2020-08-10 17:46:30 +03:00
Alexei Sorokin
8c41663175
Revert "[CORE] Avoid the old "reply" relation in inboxnoticestream"
...
It is needed for mentions.
2020-08-10 17:23:57 +03:00
Alexei Sorokin
7cb10b71bb
[RequireValidatedEmail] Only check current user posts
...
This check made registration impossible when welcomeuser didn't have validation
as well.
And rename the "grandfatherCutoff" option to "exemptBefore".
"Grandfathering" is a relatively obscure term linked to the history of the
United States of America, so replace that with something self-descriptive.
2020-08-09 23:58:25 +03:00
Alexei Sorokin
47cacf5f1a
[NOTICES] Restore FullNoticeStream
...
But only allow a select number of verbs.
This is to display optional subscription notices.
2020-08-09 21:00:14 +03:00
Alexei Sorokin
042e4b070c
[EmailAuthentication] Check if e-mail with filter_var
2020-08-09 20:35:31 +03:00
Alexei Sorokin
f84dbb369f
[DATABASE] Enable fulltext search by default
...
Also rename fulltext indices to more fitting names
and move the check from classes into database/schema.php
2020-08-08 18:08:06 +03:00
Alexei Sorokin
34ec165bff
[DATABASE][PostgreSQL] Add fulltext search support
2020-08-08 16:56:20 +03:00
Alexei Sorokin
b20c0bdec7
Clean Notice_prefs and Fave_tally when a notice is deleted
2020-08-08 12:22:35 +03:00
t3nma
c527ad0803
[COMPOSER] Add new php-ffmpeg package
2020-08-07 23:42:38 +01:00
Alexei Sorokin
0a6bb5190f
[ExtendedProfile] Clean up of missing array indices handling
2020-08-07 11:59:17 +03:00
Alexei Sorokin
cf353f8829
[TwitterBridge] Do not fail on missing notice
2020-08-07 11:42:21 +03:00
Alexei Sorokin
2bd7c021fd
[ACTIONS] Fix selftag
2020-08-07 10:20:03 +03:00
Alexei Sorokin
46f788d1eb
[UTIL] Fix up common_ensure_session()
...
Give priority to cookies over GET.
Make sure session ids have only expected characters
(PHP file session handler's limitation).
Replace a mostly useless log warning with a debug message.
2020-08-06 21:54:49 +03:00
Alexei Sorokin
5ea5d30075
[EXCEPTIONS] Inherit the Previous Exception parameter
2020-08-06 20:03:44 +03:00
t3nma
22d650469b
[TwitterBridge] Fix issue "Only variables should be assigned by reference"
...
From the docs: "The new operator returns a reference automatically, so
assigning the result of new by reference is not allowed as of PHP 7.0.0"
2020-08-06 17:25:27 +01:00
Diogo Cordeiro
849ad494d8
[ActivityPub][NOTICE] Process attachments
2020-08-05 18:23:41 +01:00
Diogo Cordeiro
7a2bb38331
[MEDIA] fromUrl now supports using original file name
2020-08-05 17:53:31 +01:00
Diogo Cordeiro
1428ac2cb0
[ActivityPub][NOTICE] Fix variable being wrongly reused
2020-08-05 17:53:31 +01:00
Diogo Cordeiro
efdc7d9ba0
[ActivityPub][INBOX][Delete] Support Delete Actor object being a Tombstone
2020-08-05 17:53:31 +01:00
Diogo Cordeiro
e4e41bb595
[ActivityPub][NOTICE] Fix other federation protocols mention handling
2020-08-04 20:00:55 +01:00
Diogo Cordeiro
379fbb6e5d
[ActivityPub][SCRIPTS] Add fix_subscriptions.php
2020-08-04 17:12:01 +01:00
Diogo Cordeiro
09c3236afc
[TheFreeNetwork][fix_duplicates.php] Don't die because you couldn't federate an undo follow
2020-08-04 13:03:33 +01:00
Diogo Cordeiro
7d52440461
[TheFreeNetwork][fix_duplicates.php] Small improvements on queries performed
2020-08-04 12:38:51 +01:00
Alexei Sorokin
e206995268
Set HTTP status codes with http_response_code()
2020-08-04 14:12:17 +03:00
Alexei Sorokin
ab4120721f
[Favorite] Fix "Properly trigger DisfavorNotice on profile deletion"
...
Calling find() inside delete() is probably not a good idea.
2020-08-04 13:23:31 +03:00
Diogo Cordeiro
a9c365a5eb
[VersionBump] 2.0.0alpha0
...
Ran composer update and locale updater
2020-08-04 05:31:44 +01:00
Diogo Cordeiro
8ad928d48d
[TheFreeNetwork] Add Readme
...
Improve script fix_duplicates.php's comments
2020-08-04 05:10:11 +01:00
t3nma
ebf5efe9f2
[TheFreeNetwork] Add fix_duplicates script
2020-08-04 05:02:06 +01:00
t3nma
c7055341f9
[TheFreeNetwork] Small rewrite to the onStartTFNLookup event
2020-08-04 02:45:32 +01:00
Diogo Cordeiro
34c5be5c42
[MODULES] Make default loading attributes available in global config
2020-08-04 01:36:21 +01:00
t3nma
1675916fda
[ActivityPub][QUEUES] Handle Create (AS1 POST) verb properly
...
Fixes a bug introduced in e504d13120
2020-08-03 18:21:47 +01:00
Alexei Sorokin
a38c608420
[SCHEMA] Better DBMS information fetching
...
On PostgreSQL:
- Parse defaults for strings and booleans properly.
- Parse the "serial" definition type properly.
- Get information on the "enum" definition type.
- Re-work getting information about keys/indices.
On MariaDB:
- Get information about lengths in indices.
- Get foreign key information separately from the rest as they can have
colliding names.
2020-08-01 19:05:48 +03:00
Alexei Sorokin
20be1d179a
[OpenID][DATABASE] Store UNIX timestamps as BIGINT
2020-07-31 18:40:53 +03:00
Alexei Sorokin
1870f38099
[SCHEMA] Fix a few mistakes
2020-07-31 18:24:12 +03:00
Alexei Sorokin
96eced9845
[BLOCK] Increase type strictness
2020-07-31 16:35:27 +03:00
Alexei Sorokin
92e8c40c55
[DATABASE] Add explicit indices for all foreign keys
...
This adds a requirement for all definitions that have foreign keys to also
require indices for all source (local) attributes mentioned in foreign keys.
MariaDB/MySQL creates indices for source attributes automatically, so this
serves as a way to get rid of those automatic indices and create clean explicit
ones instead.
In PostgreSQL, most of the time, indices on the source are necessary to
decrease performance penalty of foreign keys (like in MariaDB), but they aren't
created automatically, so this serves to remove that difference between
PostgreSQL and MariaDB.
2020-07-31 16:36:40 +03:00
Alexei Sorokin
0bfa747382
[DATABASE] Fix index identifiers and clean up redundant ones
2020-07-31 16:12:48 +03:00
t3nma
be3c4263b3
[DirectMessage] Update ApiDirectMessageNew action
...
- Messages are now saved as Notices
2020-07-29 17:50:29 +01:00
t3nma
f00852a619
[DirectMessage] Update ApiDirectMessage action
...
- getMessages() is now fetching from the Notice table as supposed
- every show{format}* method is properly updated to use Notice objects
- json and xml responses retrieve multi-recipients without compromising
backwards compatibility
2020-07-28 05:49:37 +01:00
t3nma
83df8848c8
[DirectMessage] Update inboxMessages() to stop fetching replies
...
This is yet to be supported in the plugin.
2020-07-28 05:48:43 +01:00
t3nma
99183ce4e2
[DirectMessage] PSR12-format
2020-07-28 04:46:10 +01:00
Alexei Sorokin
434ce56e33
[DOCUMENTATION] Adopt PSR-12 and clarify on arrays
2020-07-27 19:19:42 +03:00
Alexei Sorokin
ec86de2bc4
[DATABASE] Update "modified" in Managed_DataObject instead of a DBMS trigger
...
Instead of relying on the MariaDB's ON UPDATE CURRENT_TIMESTAMP trigger update
"modified" attributes in Managed_DataObject. Every raw query that needs
adjusting is adjusted, as they won't update "modified" automatically anymore.
The main goal behind this change is to fix "modified" updates on PostgreSQL.
2020-07-27 19:10:33 +03:00
Alexei Sorokin
341f3d0ea5
[DATABASE] Fix more incorrect uses of quotation in SQL
2020-07-26 15:28:05 +03:00
Alexei Sorokin
579120df70
[Notice] Fix clearReplies() and clearRepeats()
2020-07-26 15:12:00 +03:00
Alexei Sorokin
63eb323e8b
[SHOWSTREAM] Add "noindex" robots meta-tag for silenced profiles
2020-07-26 13:59:37 +03:00
Alexei Sorokin
2861ae2823
[AuthCrypt] Password storage and comparison improvements
...
Password hashes are now stored in a TEXT attribute, not limited to 199 symbols.
That limitation makes no sense as password hashes are not the kind of
information to be indexed.
Actually replace crypt() with password_verify() for password checking, current
code left password_verify() unused.
Only update passwords when they use a different algorithm from the current
default. Previously "overwrite" meant rehashing every login.
Replace the "argon" boolean option with "algorithm" and "algorithm_options" for
better configurability.
The default remains whichever is default for PHP's password_hash.
2020-07-25 20:16:21 +03:00
Diogo Cordeiro
0b947ce2c7
[AuthCrypt] Update README and fix formatting
2020-07-25 17:42:46 +01:00
Diogo Cordeiro
2222d6d173
[MODULES] Make settings great again
...
Plugin main class doesn't use this construct despite extending this class.
2020-07-25 17:47:53 +01:00
Alexei Sorokin
33e9b57b78
[Profile][User_group] Fix profile deletion violating foreign keys
2020-07-24 13:09:02 +03:00
Alexei Sorokin
62f4dfdc7a
[Favorite] Properly trigger DisfavorNotice on profile deletion
2020-07-24 12:45:30 +03:00
Alexei Sorokin
7e01fd9c38
[DATABASE][MariaDB] Fix index changes with foreign keys enabled
2020-07-23 19:09:41 +03:00
Alexei Sorokin
eefaf7a2b4
[DATABASE][Schema_version] Change the hashing algorithm to SHA3-512
2020-07-23 18:16:56 +03:00
Alexei Sorokin
31dcf99e61
[DATABASE] Make unprefixed schema.php a bit more DBMS-neutral
2020-07-23 18:12:01 +03:00
Diogo Cordeiro
0def5f1dca
[ActivityPub][Explorer] More robust exception handler for invalid remote answers
2020-07-23 15:54:40 +01:00
Alexei Sorokin
ac94374f48
[RemoteFollow] Fix location display
2020-07-22 19:49:24 +03:00
Diogo Cordeiro
9f72b6e2c0
[MEDIA] Fix headers when using x-static-delivery
2020-07-22 16:07:52 +01:00
Alexei Sorokin
f9e38c1a8d
[LRDD] Fix unhandled bad data in HostMeta, LinkHTML and WebFinger
2020-07-22 01:30:04 +03:00
Diogo Cordeiro
6db56cc949
[ActivityPub][AProfile] Complete strict typing
2020-07-21 23:22:07 +01:00
Alexei Sorokin
7081720ecb
[DATABASE] Check SQL boolean values with "IS TRUE"
...
This way UNKNOWN (NULL) explicitly turns to FALSE when three-valued logic is
reduced to binary.
In pgsqlschema, however, use "IS FALSE" as boolean attributes in pg_index are
non-nullable, there is no outer join and there's no clear preference for NULL
reduction.
Over-complicated constructions in TagCloud queries have been simplified, which
should not affect their performance.
Additionally, in TagCloud's lib/subscriptionspeopleselftagcloudsection.php
a typing mistake in an equi-join of "profile_tag" and "profile_list" on
"tagger" was fixed.
That regression was introduced in f446db8e2a
2020-07-21 18:06:39 +03:00
Diogo Cordeiro
f7ded4d87b
[UserFlag] Fix type of onUserRightsCheck
2020-07-21 13:37:36 +01:00
Diogo Cordeiro
67780ca4a9
[UserFlag] Increase strict typing of main file
...
Run php-cs-fixer
Correct case of class name onDeleteRelated event handlers
2020-07-21 12:43:52 +01:00
Diogo Cordeiro
871f3c4bfe
[ActivityPub] Increase type strictness on Explorer
2020-07-21 12:26:23 +01:00
Diogo Cordeiro
395fe8cb10
[ActivityPub] Fix wrong type handling on AProfile:update_profile
2020-07-21 12:02:07 +01:00
Diogo Cordeiro
af936f6f8e
[Bookmark] Fix misuse of XMLOutputter
...
Argument 3 passed to htmloutputter::input() must be of the type string or null, array given, called in /srv/gnusocial/plugins/Bookmark/forms/bookmark.php on line 166
2020-07-17 20:56:51 +01:00
Diogo Cordeiro
5512e95e0a
[ExtendedProfile] Fix misuse of XMLOutputter
...
Argument 1 passed to xmloutputter::text() must be of the type string, null given, called in /srv/gnusocial/plugins/ExtendedProfile/lib/extendedprofilewidget.php on line 556
2020-07-17 20:50:16 +01:00
Hugo Sales
5e14f18c83
[NOTICE][UI] Fix bug: Option to message "Everyone at site" when using private instance
2020-07-16 22:29:59 +00:00
Alexei Sorokin
5adb971d9a
[DOCUMENTATION] Adapt the nginx config for avatars located in /file
2020-07-09 18:39:36 +03:00
Alexei Sorokin
f51e5ba19d
[CORE] Avoid materialisation in the TaggedProfileNoticeStream query
...
This is analogous to c862589dcf
2020-07-07 22:41:03 +03:00
Alexei Sorokin
488bddb02a
[NOTICE] Update index for verbs in ProfileNoticeStream
...
After adding a verb condition there, MariaDB now prefers the
("created", "id", "is_local") and ("profile_id", "verb", "created", "id")
indices for that query, even though they are slow for the job.
So replace them with ("is_local", "created", "id") and
("profile_id", "verb", "created", "id") respectively.
Also fix the naming of the ("profile_id", "created", "id") index.
2020-07-07 20:43:08 +03:00
Diogo Cordeiro
3a2ec3ef9c
[ActivityPub] Fix bug introduced with 4d171b27
...
Too few arguments to function Activitypub_notice::create_notice()
2020-07-07 17:57:48 +01:00
Alexei Sorokin
08283f6c54
[RedisCache] Catch string return type from Predis\Client::setex
2020-07-06 20:10:12 +03:00
Alexei Sorokin
f7d3f58318
[CORE] Do not set "confirm_address"."user_id" to 0 by default
...
That breaks the foreign key constraint, it is better to just have it nullable.
2020-07-06 20:01:16 +03:00
Alexei Sorokin
89e84e9b1b
[NOTICES] Revert "We want the profile stream to be as raw as possible!"
...
There are only three possible visible notice verbs: POST, SHARE and DELETE.
What including all verbs does is it makes limiting (FETCH FIRST) unreliable as
the query will fetch invisible stuff (like favourites) and count it in, but
nothing will be displayed.
NoticeStream only allows POST and SHARE, so this effectively removes tombstones
from the profile page like in 78a111b57d
2020-07-06 19:20:44 +03:00
Alexei Sorokin
9226cce151
[NOTICES] Fix InboxNoticeStream caching
...
Introduce a new property in CachingNoticeStream for always checking if there
are any new elements in the stream.
It would be extremely hard to blow InboxNoticeStream, so instead the database
hit will still occur, but it is be much faster than starting fresh.
This fixes a regression introduced in 36a55d8436
2020-07-06 18:12:50 +03:00
Diogo Cordeiro
6526bdc824
[TheFreeNetwork] Fix small logic issue regarding StartTFNLookup return
2020-07-05 18:26:49 +01:00
Diogo Cordeiro
1967f46a69
[ActivityPub][SCRIPTS] Make update profiles work with an uri
2020-07-05 17:38:28 +01:00
Diogo Cordeiro
e504d13120
[ActivityPub][QUEUES] Add Like, Undo and Delete
2020-07-05 16:58:05 +01:00
Diogo Cordeiro
2f284f4274
[ActivityPub][INBOX][Delete] Fix misconceptions
...
References:
- https://socialhub.activitypub.rocks/t/the-delete-activity-and-its-misconceptions/137
- https://socialhub.activitypub.rocks/t/the-update-activity-more-than-caching/260
2020-07-05 16:46:37 +01:00
Diogo Cordeiro
4d171b27a4
[ActivityPub][NOTE] Do not extract actor from attributedTo
...
There was no checking of attributedTo, actors and referent object IDs to make
sure they exist in the same domain. Therefore, one could spoof messages from
people by doing attributedTo: whoever-i-want-to-spoof
2020-07-05 15:38:12 +01:00
Diogo Cordeiro
fe4a9a6189
[ActivityPub][Ostatus] Fetch avatars in accordance to the new media system
2020-07-05 15:37:52 +01:00
Alexei Sorokin
c862589dcf
[CORE] Avoid materialisation in the TagNoticeStream query
...
The notice.created sort forced the notice_tag by notice join plain to employ
materialisation, which can have a serious performance penalty depending on the
size of the database.
Sort by notice_tag.created instead, which should be exactly the same.
2020-07-01 18:20:44 +03:00
Alexei Sorokin
61765b0e33
[CORE] Avoid the old "reply" relation in inboxnoticestream
...
All verbs for not visible notices are filtered out, so this should not
break the timeline.
Additionally, filter by profile outside of the derived relation as that shows
better performance in PostgreSQL and MariaDB both.
2020-07-01 17:11:04 +03:00
Alexei Sorokin
78a111b57d
Revert "FullNoticeStream selects all verbs"
...
It appears this was added to display "tombstones" of deleted notices.
However, it has other side-effects and the concept of keeping them visible has
not been adopted by the wider fediverse.
2020-06-30 23:03:41 +03:00
Alexei Sorokin
9a515b9234
[SCHEMA] Improve timestamp storage
...
Avoid the use of deprecated MariaDB "zero dates" globally. If they're present
as attribute defaults somewhere, they will be replaced with NULL implicitly.
The existing "zero dates" in MariaDB storage will be left intact and this
should not present any issues.
The "timestamp" type in table definitions now corresponds to DATETIME in
MariaDB with "DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP", which
should be close enough to the original behaviour for compatibility purposes.
It is now the recommended type for "modified" attributes, because of the
update trigger on MariaDB. But there is no such trigger implemented on
PostgreSQL as of this moment.
2020-06-29 01:41:46 +03:00
Alexei Sorokin
b924c180ae
[DATABASE] Fix MariaDB schema verification
2020-06-28 20:05:11 +03:00
Diogo Cordeiro
737f3eb553
[ActivityPub][HTTPSignatures] Fix verify
2020-06-28 00:58:16 +01:00
Diogo Cordeiro
6e3954f3bb
[ActivityPub][Inbox] Signature verification after Actor update would always fail
2020-06-28 00:49:55 +01:00
Diogo Cordeiro
4544f29832
[AVATAR] Ensure this Action stays secure
2020-06-28 00:11:47 +01:00
Hugo Sales
477c357f11
[MEDIA] Move AttachmentAction::sendFile to common_send_file
...
This fixed the wrong content type and status code returned by the Avatar action
2020-06-27 23:23:10 +01:00
Diogo Cordeiro
7869a7c1b0
[ActivityPub][Inbox] With PHP 7.3 we don't need get_all_headers workaround anymore
...
Furthermore, it was broken on Apache2 because the actual function
doesn't put the resulting array's key in lowercase.
2020-06-27 20:43:43 +01:00
Alexei Sorokin
edc7159ef6
[Memcached_DataObject] Check if it is possible to sort efficiently
2020-06-27 11:22:19 +03:00
Diogo Cordeiro
1db6943702
[ActivityPub][Inbox] get_all_headers was nginx only
2020-06-26 14:08:47 +01:00
Diogo Cordeiro
e8dff6c4a0
[TESTS] Move AcceptHeader from ActivityPub plugin to Core
...
Delete temporary ActivityPub tests (they were to be deleted long ago)
2020-06-25 15:50:12 +01:00
Diogo Cordeiro
23ed816035
[ExtendedProfile] Fix XML type bug
2020-06-24 21:44:25 +01:00
Diogo Cordeiro
324b7f38a9
[FORMAT] Run php-cs-fixer on tests/
2020-06-24 13:55:10 +01:00
Diogo Cordeiro
aa7aff3f6b
[TESTS] Fix CommandInterpreterTest
...
Also corrected a bad refactoring that affected Xmpp plugin test
2020-06-24 13:54:38 +01:00
Diogo Cordeiro
236929a166
[PEAR] I'm tired of this issue still popping up, this seems to silence it
2020-06-24 13:08:58 +01:00
Diogo Cordeiro
953e243639
[UI] Make neo-quitter default theme
2020-06-21 00:34:55 +01:00
Diogo Cordeiro
338d53c982
[XML] Inscrease types strictness
2020-06-21 00:34:54 +01:00
Diogo Cordeiro
37ebcc509b
[AVATAR] Temporary ImageFile wasn't
2020-06-21 00:34:27 +01:00
Diogo Cordeiro
f9be6f9a85
[AVATAR] Try to delete tmp avatar if something goes wrong during the process
2020-06-20 14:47:35 +01:00
Diogo Cordeiro
2cc2b5b856
[MEDIA] ImageFile fromUpload method wasn't ensuring uploaded file was an image
2020-06-20 14:47:33 +01:00
Alexei Sorokin
194976135f
[DATABASE] Some query improvements
...
Make common_sql_weight employ standard SQL functions for the timestamp
difference in seconds.
Also replace UTC_TIMESTAMP in the MariaDB-specific part with CURRENT_TIMESTAMP
as it is the only occurence and GNU social sets UTC as a default timezone.
In a delete_orphan_files.php script simplify the main query considerably.
In clean_profiles.php stop using COUNT as if it is ANY, that is unnecessary
punishment for the database. Instead implement the anti-join with a
left outer join.
In Autocomplete and Activitypub_profile use joins instead of a WHERE OR
anti-pattern for the semi-joins.
In lib/ui/galleryaction.php replace a CROSS JOIN with an INNER JOIN.
In actions/sup.php remove a redundant subquery: WHERE is applied before
grouping either way.
2020-06-10 16:52:00 +03:00
Alexei Sorokin
ef17f3ea7d
[CORE][DATABASE] Another approach to semi-join in the inboxnoticestream query
...
Compared to the solution with INNER JOIN this seems to have better performance
as there is no need to deduplicate the subquery result before use.
2020-06-10 14:21:47 +03:00
Alexei Sorokin
0eec6fcfb6
[DATABASE] Replace NOW() with CURRENT_TIMESTAMP
2020-06-09 20:26:06 +03:00
Alexei Sorokin
09a772419a
[DATABASE] Use "<>" as an SQL non-equality sign in more cases
...
A follow-up to commit 644b417f6c
2020-06-08 18:31:22 +03:00
Alexei Sorokin
6c035d01d4
[DATABASE] Start transactions with START TRANSACTION
...
"BEGIN" is non-standard and unnecessary.
2020-06-08 12:25:01 +03:00
susdiv
97bddc4537
[Autocomplete] Fix postgres incompatible query in AutocompleteAction
2020-06-05 19:14:37 +00:00
susdiv
684675bd84
[SCRIPTS] Fix postgres incompatible query in clean_profiles.php
2020-06-05 17:57:22 +00:00
susdiv
b8c0fa9fa0
[ActivityPub] Fix Postgres incompatible query in Following and Followed collection
2020-06-05 17:48:21 +00:00
Diogo Cordeiro
9e7794cd66
Merge branch 'nightly' of rainydaysavings/gnu-social into nightly
2020-06-03 00:08:53 +00:00
rainydaysavings
92ad44abf9
[THEME][neo-quitter] Added icon for Network in navbar
2020-06-03 00:59:22 +01:00
Hugo Sales
7e83ddf80e
[FIX] Fix 'Trying to access array offset on value of type null' in AntiBrutePlugin and SimpleCaptchaPlugin when using scripts
2020-05-24 16:55:37 +00:00
tenma
a9be720f09
[OStatus] Remove TFN's deprecated Census event and fix small typo in the code
2020-05-09 11:50:26 +01:00
tenma
d7906f113e
[ActivityPub] Remove TFN's deprecated Census event
2020-05-09 11:50:26 +01:00
tenma
01dcaefcfb
[TheFreeNetwork] Use config + module settings for initialization and online lookup
...
The Census event is now replaced with module settings for populating the
protocols array. With this we can shutdown some plugins and still make
them be checked by TFN.
The performance:high config is now added when deciding whether or not to
do online lookup after the offline lookup fails.
default:
- Add default values for the TFN protocol setting
EVENTS:
- Remove Cencus event
TheFreeNetworkModule
- Remove Census event handler, update protocols array to use module's settings
- Use performance:high config when deciding to do online lookup
2020-05-09 11:50:26 +01:00
tenma
cfba91ea43
[OStatus] Add TheFreeNetwork module's support in handling profile insertion
...
Ostatus_profile:
- Update createActivityObjectProfile to trigger TFN's assistance in inserting the profile
2020-05-09 11:50:26 +01:00
tenma
134b6f6478
[ActivityPub] Add TheFreeNetwork module's support in handling profile insertion
...
Activitypub_profile:
- Update do_insert to trigger TFN's assistance in inserting the profile
explorer:
- Use the new LRDD's method for grabbing profile aliases
2020-05-09 11:50:25 +01:00
tenma
64104cb182
[TheFreeNetwork] Handle new StartTFNLookup and EndTFNLookup events
...
EVENTS:
- describe new events
TheFreeNetworkModule:
- add event handlers and necessary auxiliary methods
- minor comment updates
2020-05-09 11:50:25 +01:00
tenma
9aedcc7997
[OStatus] Update salmonaction to use the new LRDD's method for grabbing aliases
2020-05-09 11:50:25 +01:00
tenma
35547e28ea
[LRDD] Add a new method for grabing profile aliases
2020-05-09 11:50:25 +01:00
tenma
c6543e1f95
[ActivityPub] Autofix profile URIs through alias discovering
...
Activitypub_profile:
- Add updateUri method
explorer:
- Add grab_aliases method
- Update grab_local_user's online course to grab and test aliases
2020-05-09 11:50:25 +01:00
Alexei Sorokin
2183875e9e
[UI] Fix group member pages showing up twice
2020-05-05 16:49:21 +03:00
Alexei Sorokin
e5ee069f4a
[UI] Order groups in join descending order in profiles
2020-05-05 16:25:02 +03:00
Hugo Sales
6c844315aa
[CORE] Fix 'Array and string offset access syntax with curly braces is deprecated' in AuthCryptModule and DirectionDetectorPlugin
2020-05-04 10:47:23 +00:00
Alexei Sorokin
872bb1388d
[Nodeinfo] Count active users for full days and without silenced
2020-04-17 18:13:05 +03:00
Alexei Sorokin
42aa255152
[CORE] Re-format the inboxnoticestream query
2020-04-08 15:25:30 +03:00
Diogo Cordeiro
e58188d136
[UI] Small improvement on attachment's visual
2020-04-07 13:28:34 +01:00
Diogo Cordeiro
bb32c0af3b
[SensitiveContent] Fix plugin settings
...
Also reformatted the code and minor bug fixed it
2020-04-07 13:28:29 +01:00
nee
63fd2c7037
[SensitiveContent] Add option to activate for not-logged-in visitors
...
Remove redundant setting retrival code.
An example config.php entry to activate the new config:
$config['site']['sensitivecontent']['hideforvisitors'] = true;
2020-04-07 02:59:35 +01:00
nee
520a2ba202
[SensitiveContent] Don't crash in GNU social classic
...
When an attachment has no thumbnail (for example when it's a video).
2020-04-07 02:59:30 +01:00
Hugo Sales
13e8445083
[SensitiveContent] Fix bug where having this plugin activated would not size thumbnails correctly
2020-04-07 02:59:24 +01:00
Hugo Sales
d1c70cb13b
[CORE] Make avatars be served with the same mechanism as attachments
2020-04-06 21:14:11 +00:00
Diogo Cordeiro
6898cff623
[PLUGINS] Remove VideoThumbnails not useful anymore
2020-04-03 12:20:27 +01:00
Diogo Cordeiro
f4558e3c41
[ActivityPub] Fix profile url handling
2020-03-28 03:16:24 +00:00
tenma
d24075b1c5
[INSTALL] Allow the setup of sslproxy during install time
...
install.php:
installer.php:
- add option field and handle logic
display.css:
- hardcode ssl's label margin-top value so all options are correctly displayed
2020-03-15 21:37:37 +00:00
tenma
a8c2a9da3a
[DOCUMENTATION] Add further notes to the nginx sample config
2020-03-12 18:03:48 +00:00
tenma
8041df7d41
[DATABASE] Fix deprecated call to implode()
2020-03-12 17:44:50 +00:00
Diogo Cordeiro
073a181778
[ActivityPub] Fix undefined tag index 'type' in Activitypub_notice
2020-02-14 17:25:26 +00:00
Diogo Cordeiro
bec6fdc66a
[NOTICES] Add data-nosnippet attribute for notices by remote profiles
2020-01-09 19:49:49 +00:00
Diogo Cordeiro
6833c9f1c2
[SHOWSTREAM] Add robots meta-tag for remote profiles
2020-01-09 17:02:26 +00:00
Diogo Cordeiro
18ade30185
[FORMAT] Ran php-cs-fixer on the handlers of notice items and streams
...
This was to keep the following two commits readable
- actions/showstream.php
- actions/userbyid.php
- lib/modules/ActivityHandlerModule.php
- lib/modules/ActivityHandlerPlugin.php
- lib/notices/conversationnoticestream.php
- lib/notices/noticelistitem.php
- lib/notices/noticestream.php
- lib/notices/threadednoticelistitem.php
2020-01-09 21:41:34 +00:00
Alexei Sorokin
e7ab305335
[CORE] Use monotonic time via hrtime() where applicable
...
The realtime clock is not reliable when calculating elapsed time.
2020-01-07 19:48:13 +03:00
Alexei Sorokin
110d3a453a
[Embed][CORE] Validate the hexadecimal for hex2bin properly
2020-01-07 17:30:18 +03:00
Alexei Sorokin
f5aeab39b4
[PEAR DB_DataObject] Make static methods in Cast actually static
2020-01-07 17:16:07 +03:00
Diogo Cordeiro
e7738895ce
[DOCUMENTATION] Updated TODO and branches info
2019-12-23 15:39:26 +00:00
Diogo Cordeiro
60446dfc20
[CORE] Better queues defaults
2019-12-11 02:23:37 +00:00
Diogo Cordeiro
dc211c9c44
[ActivityPub][Postman] Fix not sending notices to self
2019-12-11 01:30:25 +00:00
Diogo Cordeiro
27babac6dc
[Ostatus] Partially revert 69add504e6
...
updateuris isn't needed after alll, we should solve this with TFNM and existing infrastructure.
2019-12-11 01:30:15 +00:00
Diogo Cordeiro
3e2b7cddc8
[ActivityPub][RSA] Revision, increase type scrictness and improve docs
2019-12-10 23:51:40 +00:00
Diogo Cordeiro
80ba2b3ccc
[ActivityPub] Properly handle Actor URIs by using events correctly
...
This should fix nulls on explorer lookups inputed by postman after generate_followers/getSubscribers, that I think were caused by calling common_profile_uri that, curiously, only handles local profiles
2019-12-10 23:50:56 +00:00
Diogo Cordeiro
b730582336
[CORE] Add GNUSOCIAL_ENGINE_REPO_URL and increase usage of GNUSOCIAL_ENGINE_URL
2019-11-21 00:21:22 +00:00
Alexei Sorokin
1b429dd2e5
[API] Show a nicer no such user error on statusnet/groups/list_all
2019-11-16 22:12:42 +03:00
Alexei Sorokin
448404e45c
[SCRIPTS] Fix resend_confirm_address.php
...
Fix a regression from 6ec72b2978 ,
check if an address is set when using --email.
2019-11-16 21:22:46 +03:00
Alexei Sorokin
562d84c375
[Xmpp] Adjust type declarations for changes in XMPPHP
2019-11-16 20:44:18 +03:00
Diogo Cordeiro
f09e3362aa
[COMPOSER] update
2019-11-16 16:51:01 +00:00
Diogo Cordeiro
51b5b1c08c
[ActivityPub][RSA] Fix types of generate_keys
2019-11-16 15:32:49 +00:00
Diogo Cordeiro
ca2dde9a41
[ExtendedProfile] Fix updates and allow to delete values
2019-11-03 19:49:10 +03:00
Alexei Sorokin
6674d1ed0f
[NodeInfo][DATABASE] Adjust indices of the "notice" and "user" tables
...
On big databases these queries from the Nodeinfo plugin choked up:
SELECT profile_id FROM notice
WHERE notice.created >= (CURRENT_DATE - INTERVAL '180' DAY)
AND notice.is_local = 1;
SELECT id FROM "user"
WHERE "user".created >= (CURRENT_DATE - INTERVAL '180' DAY);
2019-11-03 18:57:03 +03:00
Diogo Cordeiro
2a10dffff8
[UI] Fix a small typo
2019-11-03 15:53:11 +00:00
Diogo Cordeiro
e0b17fc97d
[REALTIME] Reviewed both the superclass and its dist plugins
2019-11-03 15:37:49 +00:00
Alexei Sorokin
52800c3a65
[DATABASE] Remove profile_tag_tag_fkey
...
profile_list.tag is not supposed to be unique,
this also reverts the addition of profile_list_tag_key.
2019-11-02 14:32:48 +03:00
Alexei Sorokin
9124617055
[Xmpp] Latin-1 space characters are not forbidden for XMPP resources
...
Also use mb_strlen() with the 8bit encoding to count octets, strlen() is not as
reliable (mbstring.func_overload).
2019-11-02 13:54:26 +03:00
Alexei Sorokin
b312712d1b
[Xmpp] Use UnexpectedValueException in splitJid, a bit narrower
2019-11-02 13:29:00 +03:00
Alexei Sorokin
5bc1b8695e
[DATABASE] Disable 'NULL' strings evaluation as SQL NULLs
...
Use $object->sqlValue('NULL') (identical to DataObject_Cast'ing) instead and
fix related issues like (email|sms)settings considering these NULLs as a
false positive for the E-Mail address still being set when it's been removed.
There could also be security implications to the now-disabled approach of
considering 'NULL' strings as SQL NULLs.
2019-11-02 12:21:43 +03:00
Diogo Cordeiro
d921f3dadb
[ActivityPub] New URI system
2019-11-10 17:47:51 +00:00
Diogo Cordeiro
c154712012
[PEAR DB_DataObject] Removed DB_DATAOBJECT_NO_OVERLOAD as we don't have support for either PHP 4 or 5
2019-11-03 00:43:21 +00:00
tenma
3634af3fdc
[TheFreeNetwork] First code: Module class and census event
2019-11-03 00:43:21 +00:00
tenma
1df9ec9f0f
[SCRIPTS] Add updateuris script
...
To fix user URIs to their non-fancy version
2019-11-03 00:43:21 +00:00
tenma
ae54a94d41
[CORE] Update common_user_uri
...
To be consistent between federated-protocols and maintain non-fancy URIs
2019-11-03 00:43:21 +00:00
tenma
69add504e6
[OStatus] Add script for profile deduplication and URI fixing
2019-11-03 00:43:21 +00:00
tenma
a0d30b6872
[ActivityPub] Fix some small known problems
...
ActivityPubPlugin:
- Rework onProfileDeleteRelated to account for the tables _rsa and _pending_follow_requests
- Update onEndShowAccountProfileBlock to stop creating the ap_profile if it doesn't exist (we'll handle this in a different manner)
Activitypub_profile:
- Remove unnecessary code from from_profile method and add return type information
Explorer:
- Update travel_collection to call itself instead of _lookup, that was wrong
2019-11-03 00:43:21 +00:00
Alexei Sorokin
a06b33be66
[AnonymousFave][DATABASE] Set the created timestamp on INSERT
2019-11-01 16:09:09 +03:00
Alexei Sorokin
fe3e33e702
[DAEMONS][TwitterBridge] Set PUBLICDIR
2019-11-01 15:27:36 +03:00
Alexei Sorokin
3f56459734
[COMPOSER] Remove some pre-composer remnants from the code
2019-11-01 14:19:42 +03:00
Alexei Sorokin
4903241e4b
[DOCUMENTATION][NGINX conf] snippets/fastcgi-php.conf is Debian-specific
2019-11-01 08:52:21 +03:00
Alexei Sorokin
85be003cf5
[Embed][CORE] hex2bin should always get an even amount of symbols
2019-11-01 08:29:52 +03:00
tenma
bddc1c0f9d
[ActivityPub] Fix successive "Cannot use object of type stdClass as array" errors in the postman
2019-11-01 02:23:39 +00:00
tenma
01f6d83b86
[MODULES] Fix VERSION constant to MODULE_VERSION in various modules
2019-10-30 23:52:14 +00:00
Diogo Cordeiro
aa994ee4fb
[CORE] Allow to force non-fancy URLs
...
Essential to allow toggling fancy urls later. In some cases it is
critical to keep the URL an unique URI.
2019-10-27 17:40:37 +00:00
Diogo Cordeiro
d058a70557
[MEDIA] Simplify Attachment actions
2019-10-19 02:57:32 +01:00
Diogo Cordeiro
7298468df7
[FILE] Fix Return value of File::getFileOrThumbnailSize() must be of the type int, null returned
2019-10-19 01:16:37 +01:00
Diogo Cordeiro
63caa5044d
[LIB_REFACTOR] Fix minor issues
2019-10-19 00:51:52 +01:00
tenma
2ae93dbec6
[ActivityPub] Revert usage of bitwise-operator & in the inbox_handler class.
2019-10-17 20:25:00 +01:00
Diogo Cordeiro
b434bead2c
[ActivityPub] The protocol allows content to be null, GNU social doesn't, we'll reject silentiously
...
Reported by kaniini
2019-10-11 19:09:12 +01:00
Diogo Cordeiro
6284b155b8
[ActivityPub] attributedTo itself is not required, if not present then it should be inferred from the actor
...
Reported by kaniini
2019-10-11 17:51:20 +01:00
Diogo Cordeiro
b12c2d17d5
[ActivityPub] Fix security issue concerning remote profile deletes
...
Reported by kaniini
2019-10-11 17:41:43 +01:00
Diogo Cordeiro
5fb1e26a4c
[ActivityPub] Inbox Handler: Remove old guzzle import
...
Improve exception information in doc blocks
2019-10-11 17:18:50 +01:00
Diogo Cordeiro
6423750250
[ActivityPub] Slightly increase robustness on exception handling
...
Also ported Activitypub_rsa to PHP7
Minor indentation fixes
2019-10-11 17:08:41 +01:00
Diogo Cordeiro
d9b5ef1cee
[ActivityPub] Consistent headers in explorer requests
...
Minor indentation fixes
2019-10-11 16:00:14 +01:00
Miguel Dantas
f1717bde51
Fix 'Call to a member function getPayload() on null'
...
Trying to enable the RedisCache with the latest nightly, getting this with the daemon:
sep 25 11:40:18 friedrich startdaemons.sh[21428]: PHP Fatal error: Uncaught Error: Call to a member function getPayload() on null in /var/www/social/plugins/RedisCache/RedisCachePlugin.php:96
sep 25 11:40:18 friedrich startdaemons.sh[21428]: Stack trace:
sep 25 11:40:18 friedrich startdaemons.sh[21428]: #0 /var/www/social/lib/util/event.php(89): RedisCachePlugin->onStartCacheSet('gnusocial:herds...', Object(HubSub), NULL, 86400, false)
sep 25 11:40:18 friedrich startdaemons.sh[21428]: #1 /var/www/social/lib/cache/cache.php(202): Event::handle('StartCacheSet', Array)
sep 25 11:40:18 friedrich startdaemons.sh[21428]: #2 /var/www/social/classes/Memcached_DataObject.php(520): Cache->set('gnusocial:herds...', Object(HubSub))
sep 25 11:40:18 friedrich startdaemons.sh[21428]: #3 /var/www/social/classes/Memcached_DataObject.php(52): Memcached_DataObject->encache()
sep 25 11:40:18 friedrich startdaemons.sh[21428]: #4 /var/www/social/classes/Managed_DataObject.php(50): Memcached_DataObject::getClassKV('HubSub', 'hashkey', 'a38b9dc516371af...')
sep 25 11:40:18 friedrich startdaemons.sh[21428]: #5 /var/www/social/plugins/OStatus/classes/HubSub.php(47): Managed_DataObject::getKV('hashkey', 'a38b9dc516371af...')
sep 25 11:40:18 friedrich startdaemons.sh[21428]: #6 /var/www/social/plugins/OStatus/lib/hubprepqueuehandler.php(68): HubSub::getByHashkey('https://herds.e ...', 'https://raki.so ...')
sep 25 11:40:18 friedrich startdaemons.sh[21428]: #7 /var/www/social/plugins/RedisQueue/classes/RedisQueueManager.php(58): HubPrepQueueHandl in /var/www/social/plugins/RedisCache/RedisCachePlugin.php on line 96
Sign in to j
2019-09-26 11:29:31 +01:00
Miguel Dantas
c6f4f40bba
[Embed][CORE] Fixes 'Invalid Filename' on Embed. Regex didn't get updated
2019-09-26 11:29:31 +01:00
Alexei Sorokin
65f1b1e1e3
Fix minor git merge resolving issues
2019-09-18 17:43:00 +03:00
Alexei Sorokin
ad91ef66bd
[SCRIPTS] Set PUBLICDIR in plugin scripts as well
2019-09-18 17:15:00 +03:00
Alexei Sorokin
6bfa593988
[DAEMONS] Move resetDb to the Daemon class
...
As it is used inside the Daemon class now, it should always be available.
2019-09-13 22:08:42 +03:00
Diogo Cordeiro
3ea580b537
[ActivityPub] Add missing parenthesis in class instantiation
...
Fixed some issues related to thrown exceptions in the doblocks; also boolean -> bool
2019-09-13 18:58:41 +01:00
Alexei Sorokin
87b0b493eb
[ActivityPub] Fix an unhandled error in onStartGetProfileFromURI
2019-09-13 20:55:23 +03:00
Diogo Cordeiro
4eb4a2de00
[ActivityPub] Fix some bugs with onStartNoticeSearch
...
Refactored Activitypub_profile::ensure_web_finger to Activitypub_profile::ensure_webfinger
Do not throw exceptions in the handling of this event because we don't
want to stop the regular search just because we were unable to find
ActivityPub actors or notes.
2019-09-13 18:10:20 +01:00
Alexei Sorokin
1f2f57b03b
[CORE] Fix logging of very early failures
2019-09-13 12:11:43 +03:00
Alexei Sorokin
4afaad3df5
[DATABASE][MariaDB] Properly account for foreign keys
2019-09-13 10:34:48 +03:00
Diogo Cordeiro
c3ba2e0f94
[BugFix] Plugins ExtendedProfile and OverwriteThemeBackground - admin is identical to system path names.
2019-09-12 23:18:50 +01:00
Alexei Sorokin
693c3168da
[OStatus] The unsubscribe state also needs a label
2019-09-12 14:19:21 +03:00
Alexei Sorokin
8f309bc768
Merge branch 'pgsql_support' into nightly
2019-09-12 12:01:50 +03:00
Alexei Sorokin
1a0d6a90c2
[INSTALL] Fix lib/util/installer.php import path
2019-09-12 11:52:04 +03:00
Diogo Cordeiro
7f2019b4af
[MODULES] Make disable in admin panel effective
2019-09-12 04:50:46 +01:00
Alexei Sorokin
ee7f0a2016
[DATABASE] Re-introduce PostgreSQL support
2019-09-11 14:14:40 +03:00
Alexei Sorokin
644b417f6c
[DATABASE] Use "<>" as an SQL non-equality sign
...
"!=" is not SQL compliant.
2019-09-11 13:27:36 +03:00
Alexei Sorokin
471576d6e8
[DATABASE] Columns not in GROUP BY must not be queried
2019-09-11 13:12:41 +03:00
Alexei Sorokin
7ee8aa7838
[DATABASE] Re-introduce the enum type abstraction
2019-09-11 12:48:28 +03:00
Alexei Sorokin
af63e9a7ad
[DATABASE] Set all primary keys as "not null" explicitly
2019-09-11 12:27:40 +03:00
Alexei Sorokin
95c7344557
[DATABASE] Various table schema related fixes
2019-09-11 12:07:54 +03:00
Alexei Sorokin
0c936e54ba
[DATABASE] Re-order tables to be created
...
Foreign keys need to be created after the respective tables are already in
place. This order makes sure this is the case.
2019-09-11 11:56:36 +03:00
Alexei Sorokin
62b90c29db
[DATABASE] Introduce a bool type in schema
...
PostgreSQL has a clear distinction between integers and booleans, so it makes
sense to draw a clear line.
2019-09-11 11:25:39 +03:00
Alexei Sorokin
6911b499d3
[DATABASE] Consistently use the "LIMIT $limit OFFSET $offset" syntax
...
The "LIMIT $offset, $limit" syntax is only supported by MySQL and MariaDB.
2019-09-11 10:12:49 +03:00
Alexei Sorokin
44f4c9374d
[DATABASE] Use time intervals in a SQL standard compliant way
2019-09-11 09:58:13 +03:00
Alexei Sorokin
11dabbe44d
[DATABASE] Only use single quotation marks for SQL strings
...
Double quotation marks are only used for identifiers in the SQL standard.
2019-09-11 09:46:30 +03:00
Alexei Sorokin
0a5a3845db
[DATABASE] Set NULL in DB_DataObject in a more reliable manner
...
Also stop assuming that FeedSub::sub_state (enum) and FeedSub::sub_end
(datetime) can possibly be set to an empty string.
2019-09-11 08:32:19 +03:00
Alexei Sorokin
5b797328f2
[DATABASE] Always quote identifiers
...
The code used to operate under the assumption that MariaDB doesn't support
quoting identifiers. Not only is that not exactly true, but MariaDB has
reserved keywords that cannot be used as table or column names unquoted.
2019-09-11 08:15:16 +03:00
Alexei Sorokin
b89f1ad7d8
[CORE] Another inboxnoticestream improvement
2019-09-10 22:25:45 +03:00
Alexei Sorokin
b0104d9992
[DAEMONS] Switch daemons to double-forking for daemonisation
2019-09-10 21:14:27 +03:00
Alexei Sorokin
9d8f4c774f
[DAEMONS] Properly disconnect daemons from the database
2019-09-10 20:25:28 +03:00
Diogo Cordeiro
8b7a22ecd9
Merge branch 'nightly' of biodantas/gnu-social into nightly
2019-09-10 17:11:00 +00:00
Miguel Dantas
a4e6db8d76
[OpportunisticQM] Revamped plugin to be able to use other poll based queuemanagers, no just the DB
2019-09-05 01:39:00 +02:00
Miguel Dantas
78506d5249
[StompQueue] Changed StompQueueManager to use polling rather than sockets
2019-09-05 01:39:00 +02:00
Miguel Dantas
6747b18b75
[PLUGINS] Added UnQueue, a new default plugin which does all actions immediately
2019-09-05 01:39:00 +02:00
Miguel Dantas
544f13c52a
[PLUGINS] Added DBQueue plugin
2019-09-05 01:38:59 +02:00
Miguel Dantas
4644f6e96b
[PLUGINS] Added StompQueue plugin, based on the implementation in lib/queue/stompqueuemanager. Updated to new STOMP library version. Dropped liberalstomp.php and stompqueuemanager.php
2019-09-05 01:38:40 +02:00
Miguel Dantas
a3b228399b
[PLUGINS] Added RedisQueue
2019-09-03 14:01:27 +01:00
Miguel Dantas
100a557c7c
[CORE][AUTOLOAD] Fix class OAuthRequest not found
...
Issue description as reported by aab:
2019-08-28 17:34:48 LOG_ERR: [khp.ignorelist.com:61055.f5f7f51c GET /api/statuses/show/178372.atom] ServerErrorAction: 500 Class 'OAuthRequest' not found
2019-08-28 17:39:50 LOG_ERR: [khp.ignorelist.com:65390.4483ff85 GET /api/statusnet/conversation/104672.rss] Handled serverError (500) but cannot output into desired format ('rss'): 'Class \'OAuthRequest\' not found'
2019-08-28 17:39:50 LOG_ERR: [khp.ignorelist.com:65390.4483ff85 GET /api/statusnet/conversation/104672.rss] ServerErrorAction: 500 Class 'OAuthRequest' not found
2019-08-28 17:40:49 LOG_ERR: [khp.ignorelist.com:65390.4c745f68 GET /api/statuses/show/18132.atom] Handled serverError (500) but cannot output into desired format ('atom'): 'Class \'OAuthRequest\' not found'
2019-08-28 17:40:49 LOG_ERR: [khp.ignorelist.com:65390.4c745f68 GET /api/statuses/show/18132.atom] ServerErrorAction: 500 Class 'OAuthRequest' not found
2019-08-28 17:47:41 LOG_ERR: [khp.ignorelist.com:65390.42ee9fd4 GET /api/statusnet/conversation/133023.as] Handled serverError (500) but cannot output into desired format ('as'): 'Class \'OAuthRequest\' not found'
2019-09-03 03:33:14 +01:00
Miguel Dantas
6acc75ccff
[FRAMEWORK][AUTOLOAD] Fix autoloads
2019-09-03 03:33:14 +01:00
Miguel Dantas
b41f9620fa
[LIB_REFACTOR] Fix requires
2019-09-03 03:33:13 +01:00
Miguel Dantas
58bde08425
[LIB_REFACTOR] Moving files into separate semantic categories
2019-09-03 03:33:13 +01:00
Miguel Dantas
7d6c6edab3
[RedisCache] Fix call to getPayload on int. The library is badly documented, but seems to return the TTL instead of the normal redis response
...
Issue description as reported by aab:
About one day after enabling redis plugin:
PHP Fatal error: Uncaught Error: Call to a member function getPayload() on int in /var/www/html/plugins/RedisCache/RedisCachePlugin.php:96
Stack trace:
0 /var/www/html/lib/event.php(89): RedisCachePlugin->onStartCacheSet('gnusocial:gatea...', Object(Queue_item), NULL, 86400, false)
1 /var/www/html/lib/cache.php(202): Event::handle('StartCacheSet', Array)
2 /var/www/html/classes/Memcached_DataObject.php(496): Cache->set('gnusocial:gatea...', Object(Queue_item))
3 /var/www/html/classes/Memcached_DataObject.php(416): Memcached_DataObject->encache()
4 /var/www/html/classes/Managed_DataObject.php(620): Memcached_DataObject->update(Object(Queue_item))
5 /var/www/html/classes/Queue_item.php(74): Managed_DataObject->update(Object(Queue_item))
6 /var/www/html/lib/dbqueuemanager.php(75): Queue_item::top(Array, Array)
7 /var/www/html/lib/iomaster.php(287): DBQueueManager->poll()
8 /var/www/html/lib/iomaster.php(161): IoMaster->poll()
9 /var/www/html/scripts/queuedaemon.php(112): IoMaster->service()
10 /var/www/html/lib/spawni in /var/www/html/plugins/RedisCache/RedisCachePlugin.php on line 96
2019-09-03 03:31:59 +01:00
Miguel Dantas
d209964718
[Memcached] Fix call to undefined method close
...
Issue description as reported by aab:
Memcached config in config.php:
addPlugin('Memcached', [ 'servers' => ['127.0.0.1', 11211],
'defaultExpiry' => 86400 // 24h
]);
Memcached and php-memchached installed.
The error appears when executing startdaemons.
Log:
PHP Fatal error: Uncaught Error: Call to undefined method Memcached::close() in /var/www/html/plugins/Memcached/MemcachedPlugin.php:202
Stack trace:
#0 /var/www/html/lib/event.php(89): MemcachedPlugin->onStartCacheReconnect(false)
#1 /var/www/html/lib/cache.php(273): Event::handle('StartCacheRecon...', Array)
#2 /var/www/html/lib/spawningdaemon.php(209): Cache->reconnect()
#3 /var/www/html/lib/spawningdaemon.php(188): SpawningDaemon->resetDb()
#4 /var/www/html/lib/spawningdaemon.php(118): SpawningDaemon->initAndRunChild(3)
#5 /var/www/html/lib/daemon.php(168): SpawningDaemon->run()
#6 /var/www/html/scripts/queuedaemon.php(186): Daemon->runOnce()
#7 {main}
thrown in /var/www/html/plugins/Memcached/MemcachedPlugin.php on line 202
2019-09-03 03:30:07 +01:00
Miguel Dantas
c03f659efb
[Embed] Fix use of undefined img_data
...
Got error 'PHP message: PHP Notice: Undefined variable: img_data in /var/www/html/plugins/Embed/EmbedPlugin.php on line 544'
2019-09-03 03:29:32 +01:00
tenma
2e66cbeb60
[CORE] Fix undefined offset warnings in different files
...
This problem was presentend in the following issue:
https://notabug.org/diogo/gnu-social/issues/60
AcceptHeader/util:
- Perform isset before using the required array values
2019-09-03 03:26:35 +01:00
tenma
19409cb999
[ActivityPub] Add support fox search-box profile/notice grabbing
...
NoticeSearchAction:
- Add new event before finding query matches
ActivityPubPlugin:
- Subscribe new searchNotice event
- Bump minor version number
Activitypub_explorer:
- Update lookup to make remote-grabbing optional
2019-09-03 03:26:35 +01:00
tenma
c06182c38f
[ActivityPub] Handle DELETE-Person activity
...
ActivityPubPlugin:
- update grab_notice_from_url to make online grab optional
- subscribe events of user and profile deletion
- bump minor version number
Activitypub_inbox_handler:
- separate handle_delete for delete-note and delete-person
Activitypub_postman:
- add delete-person logic
Activitypub_delete:
- update validation method to check for the "Person" type
- update to_array method to target the activity
2019-09-03 03:26:35 +01:00
Miguel Dantas
f79cd8cee3
[CORE] Fix small bug where Notice was sending a JSON representation to the queue, instead of sending itself
2019-09-03 03:26:35 +01:00
tenma
c130739de0
[AP] Fix subscription events
...
Both StartSubscribe and StartUnsubscribe had a wrong initial if-condition.
Furthermore, this events were calling Activitypub_profile::from_profile()
which is wrong because it creates the Activitypub_profile object when
the goal is only to check if it exists already.
2019-09-03 03:26:35 +01:00
tenma
1a4a1583d5
[AP] Subscribe RemoteFollow plugin events for allowing following with the remote-follow button
2019-09-03 03:26:35 +01:00
tenma
3633ca04eb
[OStatus] Port remote-follow to the RemoteFollow plugin
...
OStatusPlugin:
- Stop adding the remote-follow button
- Subscribe to required RemoteFollow plugin events
- Drop main/ostatussub route and update urls to the main/RemoteFollowSub route
- Bump plugin minor version number
actions/ostatusgroup,
actions/ostatuspeopletag:
- Update urls to the main/RemoteFollowSub route
lib/util:
- Port required functions from OStatusSubAction and adapt to be used with the new events
2019-09-03 03:26:35 +01:00
tenma
e61c0c45aa
[RemoteFollow] Initial work in the RemoteFollow plugin
...
lib/default.php
- Add RemoteFollow to the list of default plugins
RemoteFollowPlugin:
- Subscribe events to add the remote-follow button
RemoteFollowInitAction:
- Handles the remote-follow form and getting the redirection url for follow completion
RemoteFollowSubAction:
- Handles the remote profile pulling and actual following
2019-09-03 03:26:35 +01:00
Miguel Dantas
6d81848f25
[URLMAPPER] Fix small bug in URLMapper: a dynamic route might not exist even if a static one does
2019-09-03 03:26:35 +01:00
Miguel Dantas
10b3b343dd
[DirectMessage] Fixed use of incorrect type which prevented posting notices with only one word
2019-09-03 03:26:35 +01:00
tenma
f6fd025be2
[AP] Update version info
2019-09-03 03:26:35 +01:00
tenma
b5897687a6
[AP] Prevent postman to include the actor's followers for every sent activity
2019-09-03 03:26:35 +01:00
tenma
ebeae261de
[AP] Support Private Messaging
...
ActivityPubPlugin:
- Subscribe DirectMessage events
Activitypub_inbox_handler:
- Update handle_create_note to create private messages
Activitypub_postman:
- Add create_direct_note for sending private messages
Activitypub_create:
- Update create_to_array to support the 'directMessage' attribute
- Add isPrivateNote to verify private activities
Activitypub_notice:
- Update create_note to support the 'directMessage' attribute
- Remove isPrivateNote
lib/models:
- Add Activitypub_message, the model in charge of private notes
2019-09-03 03:26:35 +01:00
tenma
9733f3c02c
[AP] Fix Follow collections
...
Activitypub_profile:
- Fix subscription-counter getter functions, invalid profiles were being counted
apActorFollowingAction:
- Small rewrite of generate_following, didn't make sense to not use try-catch block
apActorFollowersAction:
- Small rewrite of generate_followers, didn't make sense to not use try-catch block
2019-09-03 03:26:35 +01:00
tenma
217c8a3933
[AP] Handle unlisted/followers-only notices
...
Note that this commit isn't intended to add support for sending such notes
in GS. Instead, we handle the reception, storage and direct reply to this
type of notices, in AP.
ActivityPubPlugin:
- Subscribe the event StartNoticeSave to hack answering non-public notes
Activitypub_create:
- Add 'directMessage' attribute to the Create activity, defaulting to false for now
- Update validation method: validate 'directMessage' and add debug
Activitypub_notice:
- Handle incoming unlisted/followers-only notes
- Add support for unlisted-replies
- Add method to verify private (direct) notices
inbox_handler:
- Add handler for CREATE Note
- Prepare logic for private-messaging
- Overall refactor: Class members were continuously being passed as function arguments without need
SharePlugin:
- Stop showing the announce button in non public posts
2019-09-03 03:26:35 +01:00
tenma
7188d81ad4
[AP] Properly target public notices
...
ActivityPubPlugin:
- Use TO as principal audience, CC as secondary
- Update note validation
2019-09-03 03:26:35 +01:00
Miguel Dantas
48cacd6d9d
[RedisCache] Added plugin description, fixes 'empty msgid' error
2019-09-03 03:26:35 +01:00
Diogo Cordeiro
1e378a514d
[OverwriteThemeBackground] This new plugin will let the admin set a custom background theme independent
2019-09-03 03:26:35 +01:00
Diogo Cordeiro
92ab5e18ee
[ExtendedProfile] Fix Admin menu option
2019-08-24 01:59:42 +01:00
Diogo Cordeiro
b42af10905
[MODULES] Allow to delete third party plugins
2019-08-24 01:59:42 +01:00
Diogo Cordeiro
afe8158cb7
[MODULES] Allow to upload third party plugins
...
Fixed some bugs
2019-08-24 01:59:42 +01:00
Diogo Cordeiro
a05bea0af5
[MODULES] List all available plugins and allow enabling them via UI
...
Yet another revision of the Admin Plugin Management tool
2019-08-24 01:59:41 +01:00
Diogo Cordeiro
e1514a151c
[DOCUMENTATION][DEVELOPERS][PLUGINS] Some updates to Plugins doc
2019-08-24 01:59:41 +01:00
Diogo Cordeiro
2a82cfdb2a
[TagCloud] Add Readme
2019-08-24 01:59:40 +01:00
Diogo Cordeiro
49da433879
[SearchSub][README] No longer is a default plugin since 8614cd77
2019-08-24 01:59:40 +01:00
Diogo Cordeiro
92388e1734
[SamplePlugin] Review and update with the latest GNU social best practices
2019-08-24 01:59:40 +01:00
Diogo Cordeiro
3860c25dc0
[ConversationTree] Format the plugin, add strict typing and fix docblocks
2019-08-24 01:59:39 +01:00
Diogo Cordeiro
25ee5ed1f9
[OfflineBackup] Fix plugin
2019-08-24 01:59:39 +01:00
Diogo Cordeiro
566214ac62
[PLUGINS] Removed OpenX as the service doesn't exist anymore
2019-08-24 01:59:39 +01:00
Diogo Cordeiro
1459f10803
[GroupFavorited] Fix plugin
2019-08-24 01:59:38 +01:00
Diogo Cordeiro
0795a39459
[ExtendedProfile] Hide 'Extra fields' from profile when no field was created by the sysadmin
2019-08-24 01:59:38 +01:00
Diogo Cordeiro
e5831d6807
[ExtendedProfile] Allow to delete custom profile field
2019-08-24 01:59:38 +01:00
Diogo Cordeiro
88bdb5114f
[Plugins] Incorporated GNUsocialExtendedProfile as part of ExtendedProfile
...
Also improved a lot of the plugin and made things in a way it would make sense
2019-08-24 01:59:37 +01:00
Diogo Cordeiro
90bd9088bb
[GNUsocialProfileExtensions] Fixed plugin
2019-08-24 01:59:37 +01:00
Diogo Cordeiro
01cf8ab82c
[PLUGINS] Removed GNUsocial{Photo, Photos, Video} as we don't need them anymore
2019-08-24 01:59:36 +01:00
Diogo Cordeiro
aee5506f00
[PLUGINS] Removed GeoURL as the service doesn't exist anymore
2019-08-24 01:59:36 +01:00
Diogo Cordeiro
b6183f2de1
[ForceGroup] Modernized plugin and improved documentation
2019-08-24 01:59:36 +01:00
Diogo Cordeiro
452e0fe553
[DEFAULT] Add 'DirectionDetector' as a default plugin
2019-08-24 01:59:35 +01:00
Diogo Cordeiro
2f341a3369
[ChooseTheme] Fixed plugin
2019-08-24 01:59:35 +01:00
Diogo Cordeiro
66e55d1a1f
[BlankAd] Fixed plugin
2019-08-24 01:59:34 +01:00
Diogo Cordeiro
63fac32bc0
[Awesomeness] Fixed plugin
2019-08-24 01:59:34 +01:00
Diogo Cordeiro
aaeaeba57c
[DEFAULT] Add 'AccountManager' as a default plugin
2019-08-24 01:59:34 +01:00
Diogo Cordeiro
d3c56897a3
[CORE] Core modules shouldn't show up in version action
2019-08-24 01:59:33 +01:00
Diogo Cordeiro
0c2c3ec862
[CORE] Plugin API now extends a new Module API
2019-08-24 01:59:33 +01:00
Diogo Cordeiro
b6e7b18c7b
[PLUGIN API] Bug fixes and improvements
2019-08-24 01:59:32 +01:00
Diogo Cordeiro
55d049b1e8
[CORE] Move plugin superclasses from /lib/ to /lib/modules/
2019-08-22 03:13:58 +01:00
Diogo Cordeiro
8c0601816f
[CORE] Move core plugins to a new modules directory
...
For reference (raised by rozzin in IRC):
* http://foldoc.org/module
* http://foldoc.org/library
* http://foldoc.org/plugin
As noted by XRevan86, modules are not necessarily non-essential.
As we will keep the modules directory in GS root [therefore, near to
plugins/], it is evidenced the difference between both.
This is a simple yet fundamental structural change. It doesn't change
functionality but makes clearer the way we understand GNU social's
internals.
2019-08-22 03:13:58 +01:00
Miguel Dantas
350cde08d8
[Embed] Added support for inline images
2019-08-22 03:13:58 +01:00
tenma
db5a29fd9a
[DirectMessage] Major plugin rework
...
This commit does the necessary rework to store private messages
as Notices and to support Federation. The plugin's README presents
some more detail about the changes and future work that is still
required to do.
2019-08-22 03:13:58 +01:00
tenma
0716605e94
[CORE][ROUTES] Update urlmapper to search dynamic routes before static ones when generating URLs.
...
This solves the problem of routes that differ only in having
or not $_GET params. The ones not having params (static) were
being matched first during URL generation.
The way this problem was solved was by separating the $reverse
array in both $reverse_statics and $reverse_dynamics and explicitly
traversing this last one first in the generation function. Note that
maintaining the $reverse array and unshifting dynamic routes to its
head ( and therefore to the front of the static ones ) doesn't work
since even among dynamic routes the order of arrival should be kept.
2019-08-22 03:13:58 +01:00
tenma
c802480d75
[CORE] Add new Notice scope for private messaging
...
Notice:
- Add MESSAGE_SCOPE scope
lib/*.stream:
- Filter out notices with MESSAGE_SCOPE scope
2019-08-21 16:54:47 +01:00
Miguel Dantas
2519431f02
[Embed] Added support for inline images
2019-08-21 16:54:46 +01:00
Miguel Dantas
b38e71e544
[Embed] Only resize thumbnail if it's bigger than the desired size
2019-08-21 16:54:46 +01:00
Diogo Cordeiro
c981afcf31
[DOCUMENTATION] Add release notes
...
Update INSTALL requirements
Update CHANGELOG
Update TODO
2019-08-21 16:54:09 +01:00
Diogo Cordeiro
eccb8a4faf
[ActivityPub] Move models from 'classes' to 'lib/models'
2019-08-21 16:46:39 +01:00
tenma
7fa5ddfc44
[ActivityPub] Fix WebFinger event subscription
...
ActivityPubPlugin:
- remove reference to the first argument of onEndWebFingerProfileLinks, no need
as it is an object
2019-08-21 16:46:39 +01:00
tenma
054f4e77f5
[ActivityPub] Fix handling of Delete Activity
...
inbox_handler:
- Call stronger validation method for Delete Activity objects
- Take into account mixed object in handle_delete
Activitypub_delete:
- Add validation method for Delete Activity objects
2019-08-21 16:46:39 +01:00
Diogo Cordeiro
1398d6cc21
[ActivityPub] This is the first release of the plugin
2019-08-21 16:46:38 +01:00
tenma
b902b019fb
[ActivityPub] Use queues for notice distribution
...
ActivityPubPlugin:
- Change event-based notice distribution to queues logic
ActivityPub/lib:
- Add queue handler class activitypubqueuehandler.php
Misc:
- Add documentation for the (Start/End)InitializeQueueManager events
2019-08-21 16:46:38 +01:00
tenma
5e589aba3c
[OStatus] Fix notice enqueue
...
OStatusPlugin:
- Enqueue in the last position, as it should be. No need to worry about
the OMB comment, this protocol no longer have queue handlers that could
cause a conflict.
2019-08-21 16:46:38 +01:00
tenma
c28cee88b7
[ActivityPub] Ensuring federation with other software
...
ActivityPubPlugin:
- Prevent sending a Delete for an Announce
Activitypub_announce:
- Update announce_to_array to add id, to and cc information to the retrieved object
Activitypub_follow:
- Add id to the arguments of follow_to_array, useful for Accept-Follow activities
Activitypub_notice:
- Fix notice validation, url isn't a MUST
Activitypub_inbox_handler:
- Make handle_follow use the received activity id for the later Accept-Follow
Activitypub_postman:
- Fix call to the updated announce_to_array
- Fix successive unnecessary calls to ActivityPubPlugin::actor_uri()
2019-08-21 16:46:37 +01:00
brunoccast
14a45dc546
[ActivityPub] Fix notice creation
...
Activitypub_notice:
- Perform url test, use id when missing.
2019-08-21 16:46:37 +01:00
brunoccast
883621ba34
[ActivityPub] Routes
...
ActivityPubPlugin:
- Update routes to properly use the updated URLMapper
2019-08-21 16:46:37 +01:00
brunoccast
067cc81ebb
[ActivityPub] Ensuring notice deletion
...
ActivityPubPlugin:
- Minor onDeleteOwnNotice rewrite
Activitypub_inbox_handler:
- Add deletion check to incoming notice
Activitypub_postman:
- Call the correct getUrl function
2019-08-21 16:46:37 +01:00
brunoccast
b19ee7b894
[ActivityPub] Ensuring Notice Favor/Disfavor
...
ActivityPubPlugin:
- Minor re-write of favor/disfavor event handlers
Activitypub_postman:
like/undo-like:
- fix proper getUrl() call
misc:
- make all activities accumulate errors (may be needed later) and log some information about it
2019-08-21 16:46:36 +01:00
brunoccast
1b356d3bf2
[ActivityPub] Ensuring notice distribution
...
ActivityPubPlugin:
- Fix of accepted activity verbs to include SHARES
- Add attention profiles to delivery when announcing
Activitypub_notice:
- New local function to retrieve original URL
- Removal of unnecessary 'Atom*' attributes
- Small fix to the ensuring of actor profile
Activitypub_profile:
- New local function to fetch AP profiles from a collection
Activitypub_postman:
- Fix url passed in the announce activity
2019-08-21 16:46:36 +01:00
brunoccast
94a4059b4a
[ActivityPub] Caching of Following/Followers interactions and collections
...
Follow interaction:
- Fixed mini-bug where the subscriber profile was being used as the subscribed
- Updated cache subscription-related values in both instances
- Tested and working with local GS instances
Unfollow interaction:
- Updated cache subscription-related values in both instances
- Tested and working with local GS instances
Followers/Following collections:
- Now returning ActivityPub profiles only
- Stored collections in cache
Misc:
- Fix bug concerning the retrieval of public/private-key after in-function generation
2019-08-21 16:46:36 +01:00
brunoccast
735a0023cc
[ActivityPub] Routes
...
ActivityPubPlugin:
- Update routes to properly use URLMapper
- Minor updates
2019-08-21 16:46:36 +01:00
Diogo Cordeiro
2ad4fa99ed
[CORE] Add ActivityPub plugin
...
This is not the same as the one in https://notabug.org/diogo/gnu-social-activitypub-plugin
Differences to the first "release"
-> Doesn't use guzzle nor has any composer dependencies
-> Supports HTTP Signatures
-> Has basic l10n/i18n
-> Some minor bug fixes
2019-08-21 16:46:35 +01:00
Miguel Dantas
c0950c5fc6
[PLUGINS] Dropped Memcache in favor of Memcached. The difference between these is that they use a similarly php library to interact with memcache, but memcached is more modern
2019-08-15 22:33:38 +01:00
Miguel Dantas
afbbbbd4f2
[Memcached] Merged useful features from Memcache
2019-08-15 22:33:37 +01:00
Miguel Dantas
32812c9482
[PLUGINS] Updated and reviewed the Memcached plugin
2019-08-15 22:33:37 +01:00
Miguel Dantas
c70e806d74
[RedisCache] Added README with configuration instructions
2019-08-15 22:33:36 +01:00
Miguel Dantas
05be2e7386
[RedisCache] Fix use of undefined variable
2019-08-14 15:32:36 +01:00
Miguel Dantas
e2e8885ce3
[PLUGINS] Removed direct call of EndCache events on all plugins, as it is now handled by the library
2019-08-14 15:32:35 +01:00
Miguel Dantas
b214d8b6ee
[CACHING] Imported Chimo's RedisCache plugin and fixed some small parts
2019-08-14 15:32:35 +01:00
Miguel Dantas
ba98bb9334
[CORE] Fixed small anti-pattern on cache code. Plugins had to throw EndCache events, when this should be done by the library
2019-08-14 15:32:35 +01:00
Miguel Dantas
630a578e1d
[COMPOSER] Added predis/predis and updated packages
2019-08-14 15:32:34 +01:00
Miguel Dantas
0bb35d7e7f
[LinkPreview] Fix 'no candidate for action "embedproxy"'
2019-08-14 15:32:34 +01:00
tenma
357296baeb
[CORE] Fix subscription-related functions from the Profile class
...
The undifined variable $private_stream, from the User class, was causing
undifined behavior from calling requiresSubscriptionApproval. The is_null
test was added to fix this problem.
2019-08-13 03:01:24 +01:00
Miguel Dantas
bff525d26f
[DOCUMENTATION][SYSADMIN][CONFIGURE] x-static-delivery was in the wrong section
2019-08-13 03:00:19 +01:00
Diogo Cordeiro
e4bdb21a54
[NodeInfo] New endpoint and formula for computing active users
...
Seriously improved documentation
Now NodeInfo 2.0 is available at /api/nodeinfo/2.0.json
For active users we now also consider favourites and recently created accounts
Some further minor bug fixes and full review of the implementation
2019-08-12 05:35:27 +01:00
Diogo Cordeiro
c0ac7f0ac8
[DOCUMENTATION] Late update of CHANGELOG and TODO list
2019-08-12 05:35:26 +01:00
Diogo Cordeiro
eba2fe1624
[DOCUMENTATION][SYSADMIN][CONFIG][profile] Fix default of backup and restore options
2019-08-11 01:11:41 +01:00
Miguel Dantas
0030fe3aeb
[REFACTOR] Added explicit return type to all instances of QueueHandler::handle
2019-08-11 01:11:41 +01:00
Miguel Dantas
aaabf82eff
[CORE][QUEUE] Error checking and type declaration on handling notice queue events
...
Patch submitted by XRevan86
2019-08-08 02:44:14 +01:00
Diogo Cordeiro
de91d28f6f
[PEAR][DB] Import some new commits
...
Patch submitted by XRevan86
[DB/pgsql.php] Change pg_exec to pg_query
Encouraged by http://php.net/manual/en/function.pg-query.php and enables
improved monitoring by New Relic (https://newrelic.com )
[DB.php] changed count to empty for php7.2
[DB/common.php] change to array cast for php72
From: https://github.com/pear/DB/
Commits: 7d0ddaff, d04a42a5 and ea9fff4a, respectively
2019-08-08 02:44:14 +01:00
Diogo Cordeiro
24d5d200b8
[EXTLIB][VALIDATE] Fix some types
2019-08-08 02:44:13 +01:00
Miguel Dantas
573ba2ee43
[DOCUMENTATION] Added X-Sendfile/X-Accel-Redirect to the sample nginx and apache config files
2019-08-08 02:44:13 +01:00
Diogo Cordeiro
b4fced4bd7
[DOCUMENTATION] Add versioning information
...
Some other minor improvements and a bug fix in the boilerplate
2019-08-08 02:44:07 +01:00
Miguel Dantas
52310a8ad8
[Embed] Fixed error related to oembed action
2019-08-07 23:57:40 +01:00
Diogo Cordeiro
11d203c54a
[DOCUMENTATION] Fix nginx location rule's regex for install and index
2019-08-07 23:57:36 +01:00
biodantas
723f12923c
Merge branch 'master' of biodantas/gnu-social into master
2019-08-03 20:04:14 +00:00
Miguel Dantas
8b106dbc6c
[MEDIA] Fixed wrong image cropping
2019-08-03 21:02:21 +01:00
Miguel Dantas
955d5a136f
[MEDIA] Replaced internal image handling with intervention/image, which is capable of using both GD and ImageMagik
2019-08-03 17:49:37 +01:00
Miguel Dantas
2db3825940
[CORE][COMPOSER] Added intervention/image
2019-08-03 17:49:37 +01:00
Diogo Cordeiro
db3253e5d2
[CORE] Bump PHP requirement to PHP7.3+
2019-08-03 17:49:36 +01:00
Miguel Dantas
dbde8383c9
[Embed] Fixed use of undefined variable in fixup_files script
2019-08-03 17:49:36 +01:00
Miguel Dantas
6d552f15b6
[Embed] Resize thumbnails fetched by Embed to avoid keeping original images when we need only 128x128. Size configurable in config.php
2019-08-03 17:49:36 +01:00
Miguel Dantas
ba15724a62
[FORMAT][Embed] Ran php-cs-fixer on Embed's files and small style fixes
2019-08-03 17:49:33 +01:00
Diogo Cordeiro
938d286fb6
[DOCUMENTATION] Add a CHANGELOG that includes a TODO list to reach alpha in v2
2019-08-03 17:49:11 +01:00
Diogo Cordeiro
2e6c7b1bb8
[SCRIPTS] Make them work in v2 by setting PUBLICDIR
2019-08-03 17:49:11 +01:00
Miguel Dantas
5be705ca2a
[Embed] Updated fixup_files.php script to be able to fix broken oEmbedinfo using the --broken-oembed flag
2019-08-03 17:49:10 +01:00
Miguel Dantas
07b4cfaeae
[Embed] Hide error from the UI and just don't display an image if the remote image is not valid
2019-08-03 17:49:10 +01:00
Miguel Dantas
c9379b3608
[Embed] Fix bug where we we're losing track of a file, in case the image needed to be reencoded
2019-08-03 17:49:10 +01:00
Miguel Dantas
22c8c96249
[Embed] Fixed Embed tests
2019-08-03 17:49:10 +01:00
Miguel Dantas
d66828c2bf
[Embed] Fixed bug where sometimes images were written outside the site root
2019-08-03 17:49:09 +01:00
Miguel Dantas
a244f3ba4d
[Embed] Removed old oEmbed and OpenGraph implementation
2019-08-03 17:49:09 +01:00
Miguel Dantas
0c20d35206
[Embed] Refactoring and bug fixing
2019-08-03 17:49:09 +01:00
Miguel Dantas
462ea26303
[Embed] Using oscarotero/Embed as first attempt to get oEmbed/OpenGraph data, fallback
...
to previous implementation otherwise.
2019-08-03 17:49:09 +01:00
Miguel Dantas
b25632ebc4
[PLUGINS] Fixed oEmbed dependents to use Embed
2019-08-03 17:49:06 +01:00
Miguel Dantas
2a2b3f72fb
[Embed][DB] Renaming the 'file_oembed' table to 'file_embed' on upgrade
2019-08-03 17:48:28 +01:00
Miguel Dantas
52819d39d9
[OEmbed][Embed] Renamed OEmbed plugin to Embed
2019-08-03 17:48:26 +01:00
Miguel Dantas
1d41ff16d6
[COMPOSER] Added embed/embed
2019-08-03 17:47:29 +01:00
Diogo Cordeiro
36dd245ee3
[DOCUMENTATION] New socialfy solution
2019-08-03 17:47:28 +01:00
Diogo Cordeiro
e0bc35b975
[CORE] Avatars are in PUBLICDIR in v2
...
Fixed a bug in the Installer
2019-08-03 17:47:28 +01:00
Diogo Cordeiro
893bafa14b
[INSTALL] Minor reformatting and modernization. Shouldn't change functionality significatively.
2019-08-03 17:47:28 +01:00
Diogo Cordeiro
7d262ad50b
[CORE] Fixed some small issues with PEAR
2019-08-03 17:47:28 +01:00
Diogo Cordeiro
d9e7862cea
[CORE][COMPOSER] Ensure we are compatible with PHP 7.0.0
2019-08-03 17:47:27 +01:00
Diogo Cordeiro
9f30c299ee
[CORE] Make tests great gain
2019-08-03 17:47:27 +01:00
Diogo Cordeiro
39845444cc
[DOCUMENTATION] Update description of extlib and vendor directories
2019-08-03 17:47:27 +01:00
Diogo Cordeiro
ec32db2dd6
[CORE][COMPOSER] Add hoa/consistency
...
Renamed curry to callable_left_curry
2019-08-03 17:47:27 +01:00
Diogo Cordeiro
411e8ed79d
[CORE] Downgrade phpseclib to a working state
2019-08-03 17:47:26 +01:00
Daniel Supernault
c1c2a9f1a1
[DEVTOOL] Add a robust and modern REPL
2019-08-03 17:47:26 +01:00
Daniel Supernault
2850e56f30
[CORE] Add custom favicon configuration support
...
Adds support for custom favicons defined in config.php that override theme favicons.
2019-08-03 17:47:26 +01:00
Daniel Supernault
9c0354bbf1
[CORE] Remove function_exists() calls and add up default bcrypt cost to 12.
2019-08-03 17:47:26 +01:00
Daniel Supernault
c09f1c2443
[CORE] Add Argon2I support
...
Add Argon2I support, disabled by default.
2019-08-03 17:47:25 +01:00
Daniel Supernault
912f2c3567
[CORE] Update AuthCryptPlugin
...
Added password_hash() (bcrypt) support with fallback to crypt() for older PHP versions.
2019-08-03 17:47:25 +01:00
Daniel Supernault
ad51998d67
[CORE] Add timing safe backwards compatible password_verify
2019-08-03 17:47:25 +01:00
Diogo Cordeiro
1049080df5
[CORE] Move public resources to a /public directory
...
Advantages:
* Increases security by preventing direct access to file/
* We are careful and have a defined('GNUSOCIAL') || die() to prevent
direct access to GS files, but we may miss one or a vendor/extlib may
not be as careful
* Improves directory structure - It's more natural to physically
separate what is public from what are GNU social resources
2019-08-03 17:47:25 +01:00
Diogo Cordeiro
966b00617e
[CORE] Remove PEAR Command as it is not used
2019-08-03 17:47:25 +01:00
Diogo Cordeiro
b408208e4c
[FORMAT] Run php-cs-fixer in php-gettext
2019-08-03 17:47:24 +01:00
Diogo Cordeiro
a1edc2c6a9
[CORE][COMPOSER] Move plugins extlibs to composer (where appropriate)
2019-08-03 17:47:24 +01:00
Diogo Cordeiro
2a06261f75
[CORE][COMPOSER] Move extlib packages with immediate composer correspondent to composer dependencies
...
This adds a composer.json for all dependencies that are available
2019-08-03 17:47:24 +01:00
brunoccast
0b58465fb9
[CORE] Fix notice delete-form
...
DeletenoticeAction:
- Added tombstone check before deletion
NoticeListItem:
- Added tombstone check before showing delete-form
ActivityVerb:
- The plugin was overwriting the deletenotice route. Added stronger
regexp to the connected routes.
2019-08-03 17:47:23 +01:00
Diogo Cordeiro
f67a93eddc
[CORE] Bump Database requirement to MariaDB 10.3+
2019-08-03 17:47:23 +01:00
Diogo Cordeiro
7044f0e2cf
[Media] Fix undefined variable box in imagefile.php
2019-08-03 17:47:23 +01:00
Miguel Dantas
ed7a88ce66
[StoreRemoteMedia] Added documentation for feature which limits the maximum filesize which is kept locally
2019-08-03 17:47:22 +01:00
Miguel Dantas
e392160435
[ROUTES] Fixed attachment routes, broken by channges in fa378462f4
2019-08-03 17:47:17 +01:00
brunoccast
5c0a3102ff
[ROUTES] Allow accept-header specification during router creation
...
Router:
- Fix calls to connect, most of them were misusing the function's params
URLMapper:
- Minor fixes
- Documentation
- Add support for accept-header specification
Plugins/*:
- Fix calls to connect
2019-08-03 17:47:16 +01:00
brunoccast
2032c7c1f7
[ROUTES] PSR2-format
2019-08-03 17:31:44 +01:00
Miguel Dantas
d295d8b43c
[CORE] Added documentation and fixed typo in attachments action
2019-08-03 17:31:44 +01:00
Miguel Dantas
ee8bac9ad7
[CORE] Fix bug where we we're losing track of a file, in case the image needed to be reencoded
2019-08-03 17:31:44 +01:00
Miguel Dantas
4863bd30d7
[CORE] Fixed Media tests
2019-08-03 17:31:43 +01:00
Miguel Dantas
7070a14480
[CORE][StoreRemoteMedia] Fixed bug where sometimes images were written outside the site root
2019-08-03 17:31:43 +01:00
Diogo Cordeiro
a38f25f7cd
[PEAR] Modernize Validate code
...
Upgraded IDNA to IDNA2
Added PEAR Date
> fixed: The each function is deprecated
2019-08-03 17:31:43 +01:00
Miguel Dantas
a5259073df
[CORE] Fix X-Sendfile for nginx, using the X-Accel-Redirect header
2019-08-03 17:31:43 +01:00
Miguel Dantas
3e5ce46e98
[CORE] Fixed bug where the http connection was using the wrong size for thumbnails, and returning the wrong one
2019-08-03 17:31:42 +01:00
Miguel Dantas
f746866b65
[StoreRemoteMedia] StoreRemoteMedia now uses the new filename format, which allows it to display correctly in the UI. Formatting fixes
2019-08-03 17:31:42 +01:00
Miguel Dantas
8f31a1a820
[MEDIA][OEMBED] Fixed regression in OEmbed, because it relied on accessing the files directly, which previous commits broke. The File table really should have a bool...
2019-08-03 17:31:42 +01:00
Miguel Dantas
4187568522
[OEMBED][UI] Skip adding an image thumbnail for oembed results if we
...
don't have a file locally to generate it, which can happen, for
instance, if StoreRemoteMedia is disabled
2019-08-03 17:31:42 +01:00
Miguel Dantas
da82048d77
[MEDIA] Fix trying to display file wich is not available locally
2019-08-03 17:31:41 +01:00
Miguel Dantas
04d1caff78
[CORE] Fixed bug where all thumbnails were using the original file
2019-08-03 17:31:41 +01:00
Miguel Dantas
bea06da531
[INSTALL] Fixed issue in installing where default.php needs util.php but it's not loaded
2019-08-03 17:31:41 +01:00
Miguel Dantas
7643f3cf7b
[CORE][ACTION] Removed getfile action. Superseded by attachment/*/download, which additionally uses a file hash as oposed to a filename.
...
Additionally, added etag and last modified HTTP headers to attachments, to more effectively take advantage of caching
2019-08-03 17:31:41 +01:00
Miguel Dantas
aa5c6bbf08
[CORE][UI] Made attachment actions and its subactions be able to identify attachments by id and by filehash. Changed the url stored in the DB to be attachment//view
2019-08-03 17:31:41 +01:00
Miguel Dantas
9536f2a909
[CORE] Refactored attachement actions to remove duplicate code
2019-08-03 17:31:40 +01:00
Miguel Dantas
c7475d78b4
[CORE][UI][ROUTER] Added view action, which inlines images and videos but downloads everything else. Fixed File url to get an URL fromthe view action, so when a making a remote notice, the correct URL is used, not accessing directly to the file
2019-08-03 17:31:40 +01:00
Miguel Dantas
3c9a07677e
[CORE] Attachments and thumbnails aren't accessed directly by the file under the file storage folder, but indirectly from PHP, so that access to the file folder can be blocked in the server config
2019-08-03 17:31:40 +01:00
Miguel Dantas
b669f57068
[CORE] Fixed common_get_preferred_php_upload_limit, because some values in php.ini can be -1 or 0 for unlimited
2019-08-03 17:31:40 +01:00
Miguel Dantas
ccebe536b3
[MEDIA] Removed blacklisted extensions, "trusts" upload extension (doesn't affect anything) and updated sysadmin documentation
...
Fixes bug which broke the UI. Oops
2019-08-03 17:31:39 +01:00
Miguel Dantas
b9a0733062
[MEDIA][CORE] Add common function for converting a string with a size unit to an int and MediaFile uses file_quota
2019-08-03 17:31:39 +01:00
Miguel Dantas
5961b45140
[MEDIA][UI] In case an attachment preview isn't possible, the name is displayed anyway
2019-08-03 17:31:39 +01:00
Miguel Dantas
5f53738376
[MEDIA][UI] Added preview support for BMP, WEBP and ICO, displaying the name underneath, centered
2019-08-03 17:31:38 +01:00
Miguel Dantas
5eb4a7d711
[MEDIA] File downloader now in PHP, added proper name in the UI and changed the format for new attachment file names
...
The file downloader was changed from a simple redirect to the file to one
implemented in PHP, which should make it safer, by making it possible disallow
direct access to the file, to prevent executing of atttachments
The filename has a new format:
bin2hex("{$original_name}")."-{$filehash}"
This format should be respected. Notice the dash, which is important to distinguish it from the previous
format, which was "{$hash}.{$ext}"
This change was made to both make the experience more user friendly, by
providing a readable name for files, as opposed to it's hash. This name is taken
from the upload filename, but, clearly, as this wasn't done before, it's
impossible to have a proper name for older files, so those are displayed as
"untitled.{$ext}".
This new name is displayed in the UI, instead of the previous name.
2019-08-03 17:31:36 +01:00
Diogo Cordeiro
f717081893
[OEmbed] Revert filename change introduced with 96ce758c
2019-08-03 17:30:52 +01:00
Diogo Cordeiro
01b5118c6f
[Oembed] Refactoring and some improvements (namely documentation)
...
Imported some changes from postActiv
2019-08-03 17:30:52 +01:00
Diogo Cordeiro
d705bcbd98
[CORE] Use random_bytes() if available and improve common_confirmation_code() randomness.
...
With PHP 7 comes the [random_bytes()](https://php.net/manual/en/function.random-bytes.php ) and the [random_int()](https://www.php.net/manual/en/function.random-int.php ) function which generates cryptographically secure pseudo-random bytes and integers, respectively.
2019-08-03 17:29:14 +01:00
Diogo Cordeiro
f0f5ecb756
[SCRIPTS] Fix sessiongc by XRevan86
2019-08-01 14:38:04 +01:00
Diogo Cordeiro
c0342b1482
[DOCUMENTATION] Allow install.php to be ran with sample nginx conf
2019-08-01 14:37:59 +01:00
Diogo Cordeiro
d1fc7c0774
[CORE] MySQL 5.5 support fully restored
2019-07-25 15:35:24 +01:00
Diogo Cordeiro
46be9b76ef
[CORE] Fix wrong Profile_list schema and set created in user_im_prefs properly - by XRevan86
...
This reverts 496ab8c9 , which was a bad correction of user_im_prefs values
2019-07-24 22:28:06 +01:00
Diogo Cordeiro
6c8d2e159e
[DOCUMENTATION] Plugin events should be declared in the plugin's directory not in the core
2019-07-15 03:25:16 +01:00
Diogo Cordeiro
db9bb6b5a1
[OStatus] null being returned instead of an empty array
...
Fixes: "Invalid argument supplied for foreach" in onEndFindMentions
2019-07-10 00:34:46 +01:00
Diogo Cordeiro
5ea0d74a57
[UI] Long strings/words in dents weren't being wrapped
2019-07-10 00:33:19 +01:00
Diogo Cordeiro
30a1a460b7
Minor reformatting of upgrade.php, doesn't change functionality
2019-07-01 23:14:39 +01:00
Diogo Cordeiro
5eb61c17d4
Regression introduced in daa5f87f fixed by XRevan86
...
require_once(): Failed opening required 'Error.php' in extlib/DB/DataObject.php on line 562
2019-07-01 23:14:23 +01:00
Diogo Cordeiro
0a4eeb89da
[CORE][ROUTER] Fix wrong parameter in all/:tag by XRevan86
2019-07-01 22:40:21 +01:00
Diogo Cordeiro
11dc170ead
[CORE][FRAMEWORK] URL_REGEX_VALID_PATH_CHARS didn't recognize the parenthesis sign.
2019-06-26 15:54:51 +01:00
Diogo Cordeiro
98c0c1ed53
Implement $config['site']['logdebug']
2019-06-25 22:59:10 +01:00
Diogo Cordeiro
83a05724b8
[CORE] Fix subscriptions and subscribers list (related to 44653d339d)
2019-06-24 14:06:43 +01:00
Diogo Cordeiro
44653d339d
[Poll] Refactoring and minor bug fixes
2019-06-23 23:06:04 +01:00
Diogo Cordeiro
f2705180e0
[TagSub] Fix User's tags list issue
...
Issue introduced with 6d9f390b and 9a92b58057
2019-06-18 14:56:55 +01:00
Diogo Cordeiro
306d80de94
[DATABASE] Revert accidental regression introduced with 9a39ebe66f
2019-06-14 12:00:10 +01:00
Diogo Cordeiro
2740ff8c4c
[DOCUMENTATION] Minor corrections
...
Add two missing contributors
Bumped patch due to changed introduced with 0583a6a904
2019-06-12 12:55:42 +01:00
Daniel Supernault
74ad4038ac
Allow username or email in login form
2019-06-12 03:25:06 +01:00
Diogo Cordeiro
3f8593268e
[Nodeinfo][TRANSLATION] Fix languages meta-data
2019-06-12 03:25:02 +01:00
Diogo Cordeiro
8ea83aac48
[OStatus] Wrong exception was being caught
2019-06-12 02:20:58 +01:00
Diogo Cordeiro
81d65afb28
[RELEASE] The Invicta Crusade
2019-06-11 18:37:25 +01:00
Diogo Cordeiro
c93547b080
[OpenID] Added support for GS's Internal Session Handler
2019-06-10 16:49:48 +01:00
Diogo Cordeiro
54f75683c7
[OpenID] s/sync/synch
...
This commit also fixes the translation in /plugins/OpenID/actions/finishopenidlogin.php#L203-L204 (s/Syncronize/Synchronize)
Sync is a bad technical jargon and we should use Synch instead.
Synch is already used in other parts of GNU social as seen in plugins/TwitterBridge/classes/Twitter_synch_status.php
2019-06-10 15:51:56 +01:00
Diogo Cordeiro
abfd691fda
Merge branch 'nightly' of biodantas/gnu-social into nightly
2019-06-09 23:44:43 +00:00
Miguel Dantas
20c73f0596
[FORMATING] Ran php-cs-fixer on lib/mediafile.php, lib/imagefile.php and classes/File.php
2019-06-10 00:38:16 +01:00
Miguel Dantas
b224d93098
[MEDIA] ImageFile now extends MediaFile and validates images more aggressively.
...
Default supported files need to use consistent names. Bumped version to 1.20.0
ImageFile has been changed to extend MediaFile and rely on it to partially
validate files. This validation has been extended to not rely solely on
Fileinfo, as it is disabled on some places. Now it'll try to use the shell
command `file`, if Fileinfo isn't available.
ImageFile now converts every new upload to PNG, except JPEG and GIF, which
are kept, but still resized (to the same size), to remove possible scripts
embedded therein.
MediaFile::fromUpload will return an ImageFile if the uploaded file is an image
or a MediaFile otherwise.
MediaFile can be constructed with an id with value -1 to denote a temporary
object, which is not added to the DB. This is useful to create a temporary
object for representing images, so it can be used to rescale them.
The supported attachment array needs to be populated with the result of calling
`image_type_to_extension` for the appropriate image type, in the case of images.
This is important so all parts of the code see the same extension for each image
type (jpg vs jpeg).
Added documentation to classes/File.php and to lib/MediaFile and lib/ImageFile
2019-06-10 00:35:53 +01:00
Diogo Cordeiro
719bf065ca
Merge branch 'nightly' of tenma/gnu-social into nightly
2019-06-09 17:16:01 +00:00
brunoccast
a1041a53f7
[THEME] Fix OpenID settings styles
...
- Action buttons are now side-by-side
- Dropped unused style rule concerning the solo-positioning of the Remove button
- Bump GS patch version
2019-06-09 18:13:04 +01:00
Diogo Cordeiro
711badb6b4
Merge branch 'openid-settings-sync' of tenma/gnu-social into nightly
2019-06-09 16:05:12 +00:00
brunoccast
1e4063254b
[OpenID] Added synchronization button and corresponding action
...
UI:
- "Delete" area is now "Actions" area
- Updated themes to better reflect the changes
Routes:
- index.php?action=finishsyncopenid => finishsyncopenid
Translations:
- Updated OpenID translation files
- Updated OpenID POT file
Versioning:
- Bump OpenID minor version
- Bump GS patch version
Why would have labeling the Synchronize button of Sync been of bad taste? - answered by XRevan86:
In "synchronise" "ch" is a digraph meaning /k/ (actually /x/ turned into /k/ in English but whatever).
So… not separate letters.
It's like "ph" in "alphabet", or "sh" in "sheep", or "ch" in "chop" -- "ch" can mean a whole variety of sounds.
2019-06-09 17:04:26 +01:00
brunoccast
b8352e912f
[THEME] Fix styles identation
2019-06-09 17:00:06 +01:00
brunoccast
69a1d77480
[OpenID] Add sync confirmation in both OpenID settings and login connection
2019-06-09 17:00:06 +01:00
Diogo Cordeiro
54d7a7cccd
Merge branch 'fix-plugins-copyright' of tenma/gnu-social into nightly
2019-06-09 15:35:20 +00:00
brunoccast
c7afe2f86c
[TRANSLATION] Update Plugin POs
2019-06-09 16:10:03 +01:00
Diogo Cordeiro
5f4e3fe0eb
[TRANSLATION] Update POTs and normalize files
2019-06-08 18:41:10 +01:00
Miguel Dantas
fb95af1cf5
Added Spanish, Polish and Esperanto translations to NodeInfo plugin
2019-06-08 18:36:04 +01:00
brunoccast
7b73d267d5
[TRANSLATION] Update license and copyright notice in translation files
2019-06-08 18:36:04 +01:00
Diogo Cordeiro
08b6cfde66
[SESSION] Add backwards compatibility for third party plugins depending on old Session::cleanup()
...
Namely Qvitter
2019-06-08 00:31:32 +01:00
Diogo Cordeiro
2110c20ecc
[DOCUMENTATION] README.md should mention about the importance of running upgrade.php script
2019-06-07 16:42:50 +01:00
Diogo Cordeiro
9f51692f26
[NGINX conf] Move /var/run to /run
...
As seen in https://lists.fedoraproject.org/pipermail/devel/2011-March/150031.html
Thanks to XRevan86 for reporting this :)
2019-06-07 15:02:10 +01:00
Diogo Cordeiro
02c67fd114
[Nodeinfo][DATABASE][Usage_stats] Fix wrong type for modified column
2019-06-07 15:02:10 +01:00
Diogo Cordeiro
b6be1a3659
[DATABASE][User_openid_prefs] Fix wrong type for modified column
...
Patch submited by Sorokin Alexei (XRevan86)
2019-06-07 15:02:09 +01:00
brunoccast
00b4a084ad
PSR2-format
2019-06-07 15:02:09 +01:00
brunoccast
061e7891e9
Cleanup and documentation of common_ensure_session
...
- Remove redundant branch
- Remove error suppression of session_start()
2019-06-07 15:02:09 +01:00
Diogo Cordeiro
a1af5562de
EmailRegistration plugin flow requires a confirmation address before user creation
2019-06-07 15:02:09 +01:00
Diogo Cordeiro
df84ccd916
Nodeinfo has a special rule for upgrades
2019-06-07 15:02:08 +01:00
Diogo Cordeiro
2f118fde9e
Update /main/version information
2019-06-07 15:02:08 +01:00
Diogo Cordeiro
46f98b3142
[VersionBump] 1.19.0, fairly late
...
The core plugins whose version was attached to GS's were reseted to 2.0.0.
2.0.0 was chosen as reset version for plugins because it is higher than
the one that was set by inheriting GS version. Furthermore, it's a
major change from prior plugin versioning system thus it also makes
semantic sense.
Justification for version bump:
== GS ==
9a4ab31f26 1.19.0
c13b935201 1.18.3
c13b935201 1.18.2
18fc39d2cf 1.18.1
c083a8bcc2 1.18.0
e8783d46d0 1.17.1
d9a42550ff 1.17.0
1536d3ef29 1.16.0
c03ed457a6 1.15.0
d2e6519bad 1.14.2
fe411e8138 1.14.1
b17e0b4169 1.14.0
daa5f87fd4 1.13.0
d75b5d2f4a 1.11.7
f6dbf66983 1.11.6
6cf674f8f8 1.11.5
7845a09b34 1.11.4
e4d432295d 1.11.3
339204f1ee 1.11.2
a4e679a118 1.11.1
7967db6ff5 1.11.0
bc030da320 1.10.1
9cc7df51d6 1.10.0
bf7f17474d 1.9.2
8a07edec5f 1.9.1
0042971d74 1.9.0
6b5450b7e6 1.8.0
5dcc98d1c6 1.7.0
e6667db0cd 1.6.0
3290227b50 1.5.0
a59c439b46 1.4.0
496ab8c920 1.3.10
986030060b 1.3.9
1d529c021a 1.3.8
f89c052cf8 1.3.7
38f2ecefac 1.3.6
e473937cb9 1.3.5
9a39ebe66f 1.3.4
ddc3cecfc0 1.3.3
2b43d484eb 1.3.2
e8e487187e 1.3.1
== Plugins ==
XMPP plugin
e0887220b0 bump patch
e186ad57d0 bump patch
OStatus
e186ad57d0 bump patch
Nodeinfo
ceae66a30f bump minor
586fb5a517 bump major
195296846e bump minor
2019-06-07 15:02:08 +01:00
Diogo Cordeiro
72ee098e0b
[DOCUMENTATION] EVENTS.txt: Add Nodeinfo plugin event
2019-06-07 15:02:07 +01:00
brunoccast
43df2d201c
Extend Action with redirect after login logic, update some actions to use it
2019-06-07 15:02:07 +01:00
brunoccast
691df04103
PSR2-format
2019-06-07 15:02:07 +01:00
Diogo Cordeiro
ab24f59660
[DOCUMENTATION] Add CONTRIBUTING information for developers
...
Inspired both from GNU FM, postActiv and Moodle
2019-06-07 15:02:00 +01:00
Diogo Cordeiro
3886db64bc
[DOCUMENTATION] Update README.md
2019-06-05 22:48:29 +01:00
Diogo Cordeiro
e7a875755d
[DOCUMENTATION] Move CREDITS to its own file and update list from postActiv
2019-06-05 22:48:29 +01:00
Diogo Cordeiro
7cf4e1bb09
[DOCUMENTATION] Convert INSTALL to markdown and update the requirements
2019-06-05 22:48:28 +01:00
Diogo Cordeiro
eaea9d48c5
[DOCUMENTATION] Convert Configure to markdown, format and improve it by maiyannah and Normandy
2019-06-05 22:48:28 +01:00
Diogo Cordeiro
2e9fa8f4b7
[DOCUMENTATION] Reorganize documentation
2019-06-05 22:48:28 +01:00
Diogo Cordeiro
d7d63e1464
[NGINX conf] Stop serving files as indexAphp, index:php
...
Removed some boilerplate and overly specific configuration
2019-06-05 22:48:21 +01:00
Diogo Cordeiro
bb175f3d4e
[NGINX conf] Fix PHP files being served as files.
2019-05-31 10:00:57 +01:00
Diogo Cordeiro
4ca32628f7
[SESSION] Log messages were a bit confusing
...
Reported by XRevan86
2019-05-26 20:14:05 +01:00
Diogo Cordeiro
6b4beb90e1
Merge branch 'master' of postblue/gnu-social into master
2019-05-26 19:12:29 +00:00
Guillaume Hayot
d7adc4e13f
Changing URI to community plugins page
2019-05-26 20:40:36 +02:00
Guillaume Hayot
c13b935201
Removing community plugins
2019-05-26 20:34:47 +02:00
Diogo Cordeiro
18fc39d2cf
Fix noticesearch tag regex
2019-05-22 22:29:33 +01:00
Diogo Cordeiro
c083a8bcc2
[SESSION] Implement SessionHandlerInterface instead of setting custom handlers by XRevan86
2019-05-22 22:29:33 +01:00
Diogo Cordeiro
e8783d46d0
[SESSION] Increase type strictness for full PHP adherence
...
Documented this file (adapted from maiyannah's postActiv doc)
This commit also fixes PHP Warning: session_write_close(): Session callback expects true/false return value in classes/Session.php on line 289 (spoted by XRevan86)
Observation: In a newer release we will be replacing this kind of castings with actual explicit PHP7 return types
2019-05-22 22:29:26 +01:00
Diogo Cordeiro
d9a42550ff
is_rtl should handle lang instead of code
2019-05-16 22:51:11 +01:00
Diogo Cordeiro
ceae66a30f
[Nodeinfo] Fix twitterimport enabled check
2019-05-11 20:52:02 +01:00
Diogo Cordeiro
031a491abd
Improved version of nginx sample config by XRevan86
2019-05-11 20:50:08 +01:00
Diogo Cordeiro
1536d3ef29
[XML/HTML Outputter] General improvements and refactoring as well as some bug fixes
2019-05-07 15:57:19 +01:00
Diogo Cordeiro
c03ed457a6
Fix broken user activitystreams feed due to deleted notices
2019-05-06 23:27:38 +01:00
Diogo Cordeiro
d2e6519bad
lib/ping.php - Fix PHP 7.3 Warning switch continue -> break
2019-05-06 23:27:38 +01:00
Diogo Cordeiro
688fa4839c
[Nodeinfo] Correct HELP info on fix_stats.php
2019-05-06 23:27:38 +01:00
Diogo Cordeiro
fe411e8138
Fix some typos/small obvious bugs on twitterRssGroupArray
2019-05-03 17:09:23 +01:00
Diogo Cordeiro
515682c0cd
Merge branch 'ATOM-priority" from Alexandre Alapetite into HEAD
...
source: https://git.gnu.io/gnu/gnu-social/merge_requests/174
2019-05-03 13:30:20 +01:00
Diogo Cordeiro
b17e0b4169
Update PEAR to v1.10.9 and patch it so it works quietly
2019-04-28 23:39:36 +01:00
Diogo Cordeiro
daa5f87fd4
Ugly patch to maintain old DB handle code working quietly
...
We have to replace this database engine with a modern one
2019-04-27 18:23:51 +01:00
Diogo Cordeiro
d75b5d2f4a
Make group edit and logo great again by XRevan86
2019-04-27 17:39:42 +01:00
Diogo Cordeiro
f6dbf66983
Undefined user in passwordsettings by XRevan86
2019-04-27 15:15:11 +01:00
Diogo Cordeiro
6cf674f8f8
Some minor refactoring on session handler
2019-04-27 00:28:05 +01:00
Diogo Cordeiro
7845a09b34
RSVP asHTML throws a pretty exception that should go out of the div, by XRevan86
2019-04-26 23:08:16 +01:00
Diogo Cordeiro
e4d432295d
Only variables should be assigned by reference
...
caught by XRevan86
2019-04-26 23:03:37 +01:00
Diogo Cordeiro
339204f1ee
Fix negative one subscriptions by XRevan86
...
Only local users are subscribed to themselves.
2019-04-26 01:10:53 +01:00
Diogo Cordeiro
a4e679a118
Add Registration form hook points by XRevan86
2019-04-26 00:59:38 +01:00
Diogo Cordeiro
195296846e
Add russian translation to NodeInfo plugin by XRevan86
2019-04-26 00:43:58 +01:00
Diogo Cordeiro
7967db6ff5
Various obvious bug fixes and better PHP 7 support
...
Many of these came from a XRevan86 patch
2019-04-26 00:34:17 +01:00
Diogo Cordeiro
c4f962a7d0
Fix wrong path on Realtime cleanupchannels script by XRevan86
2019-04-25 23:12:58 +01:00
Diogo Cordeiro
bc030da320
Fix undefined variables on Favorite plugin by XRevan86
2019-04-25 23:12:58 +01:00
Diogo Cordeiro
9cc7df51d6
Some obvious bug fixes for i18n
2019-04-25 23:12:46 +01:00
Diogo Cordeiro
bf7f17474d
When an attachment fails to load, it shouldn't destroy the whole layout by XRevan86
2019-04-25 20:46:47 +01:00
Diogo Cordeiro
8a07edec5f
Fix fulltext search by XRevan86
2019-04-25 19:32:20 +01:00
Diogo Cordeiro
0042971d74
Fix bug in 36a55d84.
...
We still have to further review and improve the caching of streams.
Important related changes: 2272cc24#diff-8633314d55a2834ab2ea425d7157bec14aca672L60
Important related discussion: https://github.com/chimo/gs-rediscache/issues/{1,2}
2019-04-25 18:51:44 +01:00
Diogo Cordeiro
6b5450b7e6
Faster inboxnoticestream.php by XRevan86.
...
This commit consequently reverts 5dcc98d1c6 and a59c439b46 . This translated the php based version into a faster SQL query.
2019-04-25 18:48:53 +01:00
Diogo Cordeiro
5dcc98d1c6
inboxnoticestream.php gotta go fast
2019-04-23 23:10:43 +01:00
Diogo Cordeiro
fc4aa470b2
StoreRemoteMedia - removeRemoteMedia script - Add missing newline in bad limit error
2019-04-23 22:11:29 +01:00
Diogo Cordeiro
586fb5a517
Faster NodeInfo stats
2019-04-22 20:03:28 +01:00
Diogo Cordeiro
e186ad57d0
OStatus and XMPP plugins now inform Nodeinfo plugins about their activity
2019-04-22 07:28:45 +01:00
Diogo Cordeiro
e6667db0cd
Add chimo's Nodeinfo plugin as a default GNU social plugin
2019-04-22 06:50:28 +01:00
Diogo Cordeiro
e0887220b0
XmppPlugin - Fix preg_match() - Compilation failed
...
Disallowed Unicodecode point (>= 0xd800 && <= 0xdfff)
2019-04-21 17:13:07 +01:00
Diogo Cordeiro
3290227b50
Modern version of XMPPHP extlib
...
Original XMPPHP is no longer maintained
Therefore I've done some optimizations and imported some commits from birkner and zorn-v forks.
None of the forks really looked ready to be adopted...
2019-04-21 17:13:07 +01:00
Diogo Cordeiro
a59c439b46
Faster inboxnoticestream.php by XRevan86
2019-04-21 00:56:56 +01:00
Diogo Cordeiro
7b6c887d76
OStatus plugin - Merge some bug fixes by XRevan86
2019-04-20 23:27:46 +01:00
Diogo Cordeiro
25eb06ac46
Remove from .gitignore stuff that should clearly go to developer's global gitignore instead
2019-04-20 01:50:02 +01:00
Diogo Cordeiro
0df8531834
Fix typo on 986030060b
2019-04-19 21:16:42 +01:00
Diogo Cordeiro
496ab8c920
User_im_prefs - Fix wrong schemaDef
2019-04-19 20:54:24 +01:00
Diogo Cordeiro
986030060b
XMPPHP - Fix string as array usage errors on PHP 7
2019-04-19 15:56:51 +01:00
Diogo Cordeiro
2d20656e22
[StoreRemoteMedia] script removeRemoteMedia.php was trying to remove already removed files
...
Sometimes different posts are associated with the same file, that case wasn't considered
Thanks to XRevan86 for spotting this issue.
2019-04-18 01:03:09 +01:00
Diogo Cordeiro
98ebe1f63b
[StoreRemoteMedia] script removeRemoteMedia.php was deleting every file posted without being via web interface
...
Added two more options: delete image-only attachments; delete previews (like oembed thumbs)
Some further minor improvements.
Thanks to colegota for spotting this issue.
2019-04-17 02:05:04 +01:00
Diogo Cordeiro
1d529c021a
Updated HTMLPurifier to 4.10.0
...
Source: http://htmlpurifier.org/releases/htmlpurifier-4.10.0-lite.zip
Release date: 2018-02-22
2019-04-16 01:11:54 +01:00
Diogo Cordeiro
f89c052cf8
Set default value of datetime columns to CURRENT_TIMESTAMP
...
This resolves an issue with MySQL 5.7 where the default SQL_MODE is set to disallow zero dates (i.e. '0000-00-00 00:00:00')
Fixed thanks to Francis and Normandy from postActiv.
2019-04-16 00:43:17 +01:00
Diogo Cordeiro
38f2ecefac
extlib/DB/DataObject - Fix PHP 7.3 Warning switch continue -> break
...
Also reformatted under PSR norms
2019-04-16 00:20:20 +01:00
Diogo Cordeiro
8305641b20
Update master GS version
2019-04-04 10:12:56 +01:00
Alexandre Alapetite
e473937cb9
Give priority to ATOM to expose WebSub.
...
Hello,
The ATOM feed contains the hub declaration for WebSub / PubSubHubbub, but the RSS / RDF / JSON versions do not.
Currently, the ATOM version is declared last.
RSS/ATOM clients typically pick whichever version comes first, and will thus not see the WebSub feature.
I therefore suggest putting the ATOM version first, as it is more feature-rich than the other versions.
Clients not compatible with ATOM would not pick it anyway due to the different type attribute.
See same PR for Mastodon: https://github.com/tootsuite/mastodon/pull/9302
and WebSub tester https://websub.rocks/publisher
2018-11-20 22:39:23 +00:00
Diogo Cordeiro
8c9efff1ac
Merge branch 'issue-326' into 'master'
...
Script for removing remote files until a given date
See merge request diogo/gnu-social!5
2018-09-14 21:33:54 +00:00
Diogo Cordeiro
37f8d3bef2
Merge branch 'issue-337' into 'master'
...
Add option to send email to --all users on sendemail.php script
See merge request diogo/gnu-social!4
2018-09-14 21:33:21 +00:00
Diogo Cordeiro
d1ba0dddec
Merge branch 'issue-338' into 'master'
...
Database fields with timestamp type now allow CURRENT_TIMESTAMP to be set as default value
See merge request diogo/gnu-social!3
2018-09-14 21:30:16 +00:00
Diogo Cordeiro
4a8f330ed2
Merge branch 'issue-323' into 'master'
...
Add default values for avatar and attachment directories in web installer
See merge request diogo/gnu-social!2
2018-09-14 21:29:32 +00:00
Diogo Cordeiro
63ab20d20b
Merge branch 'nightly' into 'master'
...
GNU social 1.3.0
See merge request diogo/gnu-social!1
2018-09-14 21:27:40 +00:00
Diogo Cordeiro
9a39ebe66f
Database fields with timestamp type now allow CURRENT_TIMESTAMP to be set as default value
...
Add default values to created and modified columns of Profile_list table to fix issue #338
2018-08-25 14:07:52 +01:00
Diogo Cordeiro
ddc3cecfc0
Add default values for avatar and attachment directories in web installer
2018-08-25 14:05:56 +01:00
Diogo Cordeiro
45479c90a3
Add option to send email to --all users on sendemail.php script
2018-08-23 23:48:38 +01:00
Diogo Cordeiro
b3c3af1ef6
Merge branch 'issue-333' into 'nightly'
...
UserFlag: Pass proper profile to FlaggedProfileListItem
See merge request gnu/gnu-social!168
2018-08-23 21:43:31 +00:00
Chimo
2b43d484eb
UserFlag: Pass proper profile to FlaggedProfileListItem
...
Fixes #333
2018-08-16 19:16:15 -04:00
Diogo Cordeiro
9688a55d56
Merge branch 'nightly' into 'nightly'
...
Group Members page: Fix typo in groupmembers.php
See merge request gnu/gnu-social!167
2018-08-14 21:18:10 +00:00
Chimo
e8e487187e
Group Members page: Fix typo in groupmembers.php
...
Fixes #332
2018-08-12 18:32:16 -04:00
Diogo Cordeiro
4211206e3b
Script for removing remote files until a given date
2018-08-09 17:26:05 +01:00
mmn
ffe14fe5f3
Merge branch 'nightly' into 'nightly'
...
fixed hard coded twitter char limit
See merge request gnu/gnu-social!154
2017-12-17 17:41:14 +00:00
mmn
c285f80b18
Merge branch 'cas-user-whitelist' into 'nightly'
...
Added CAS user whitelist feature
See merge request gnu/gnu-social!142
2017-12-17 17:38:21 +00:00
mmn
1e1543dd72
Test if $casSettings['user_whitelist'] is an array - and then perform in_array(...) instead of just checking if it's != null.
2017-12-17 17:37:24 +00:00
mmn
9c0c8a19dd
Merge branch 'backupaccount-xml' into 'nightly'
...
backupaccount: Don't print page HTML in XML export
See merge request gnu/gnu-social!144
2017-12-17 17:35:22 +00:00
Mikael Nordfeldth
ec98fd0c43
Merge remote-tracking branch 'gnuio/master' into nightly
2017-12-17 18:32:23 +01:00
mmn
67a9c0415c
Merge branch 'cache-html-sanitizer' into 'master'
...
set the html sanitizer cache directory to ['cache']['dir'] from the config file;
See merge request gnu/gnu-social!156
2017-12-17 17:25:46 +00:00
mmn
a1ea335140
Merge branch 'cli-install' into 'master'
...
Don't write the config file when --skip-config flag is given to the installer.
See merge request gnu/gnu-social!155
2017-12-17 17:25:21 +00:00
mmn
69bb81556f
Merge branch 'master' into 'master'
...
Allow GNU social master code to receive Mastodon boosts
See merge request gnu/gnu-social!153
2017-12-17 17:24:53 +00:00
nee
0b9a2fdf3a
allow the cmd installer to load the config file from '/etc/gnusocial/config.d/'.$_server.'.php'
...
using the commandline argument as $_server (passed through lib/common.php to lib/gnusocial.php)
2017-12-17 17:59:46 +01:00
nee
3b5fabbe97
set the html sanitizer cache directory to ['cache']['dir'] from the config file;
2017-12-06 01:55:54 +01:00
nee
fdd3d63098
Don't write the config file when --skip-config flag is given to the installer.
...
* scripts/installer_cli.php: Read the arguments list before checking
if the config file is writeable.
2017-11-26 22:14:30 +01:00
vinz
5af96d3ec7
fixed hard coded twitter char limit
2017-11-08 22:50:00 +01:00
vinz
250221ff7f
Merge remote-tracking branch 'upstream/nightly' into nightly
2017-11-08 22:47:23 +01:00
Mikael Nordfeldth
ec504ec4df
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2017-09-10 14:06:03 +02:00
Mikael Nordfeldth
96ce758c05
Trying to debug some stuff regarding oEmbed
2017-09-10 14:04:12 +02:00
Mikael Nordfeldth
a45d9471ed
If $_REQUEST is empty, array_merge == null.
2017-09-10 14:02:16 +02:00
Sebastian
a6e33bdd6a
Fixed code so that GNU social can receive Mastodon boosts (from GNU social nightly commit: c741d1a52a)
2017-08-25 11:35:02 +00:00
Mikael Nordfeldth
10f17efc4f
disabling auto-backlog-importer on subscribe
2017-08-23 18:09:49 +02:00
mmn
d9fbc17f77
Merge branch 'nightly' into 'nightly'
...
Added base64 encoding to get RMQ to work
See merge request !151
2017-08-23 15:28:08 +00:00
mmn
50f9f23ff1
Merge branch 'xmpphp-fix' into 'master'
...
Fix PHP incompatibilities in XMPPHP
See merge request !152
2017-08-23 15:27:34 +00:00
mmn
34bd4e6441
Merge branch 'patch-1' into 'master'
...
Update INSTALL
See merge request !150
2017-08-23 15:27:22 +00:00
Mikael Nordfeldth
0b75eaed92
missing argument for sprintf
2017-08-22 19:19:17 +02:00
Florian Schmaus
e615032331
Fix PHP incompatibilities in XMPPHP
...
This fixes the following to errors in XMPPHP:
Stack trace:
0 [internal function]: XMPPHP_XMLStream->endXML(Resource id 150, 'STREAM:FEATURES')
1 /var/vhosts/example.org/plugins/Xmpp/extlib/XMPPHP/XMLStream.php(420): xml_parse(Resource id 150, '<?xml version='...', false)
2 /var/vhosts/example.org/plugins/Xmpp/extlib/XMPPHP/XMLStream.php(471): XMPPHP_XMLStream->__process()
3 /var/vhosts/example.org/plugins/Xmpp/lib/xmppmanager.php(165): XMPPHP_XMLStream->processUntil(Array)
4 /var/vhosts/example.org/plugins/Xmpp/lib/xmppmanager.php(49): XmppManager->connect()
5 /var/vhosts/example.org/lib/iomaster.php(248): XmppManager->start(Object(ImMaster))
6 /var/vhosts/example.org/lib/iomaster.php(111): IoMaster->start()
7 /var/vhosts/example.org/scripts/imdaemon.php(58): IoMaster->service()
8 /var/vhosts/example.org/lib/spawningdaemon.php(189): ImDaemon->runThread()
in /var/vhosts/example.org/plugins/Xmpp/extlib/XMPPHP/XMLStream.php on line 567
PHP Fatal error: Uncaught Error: Function name must be a string in /var/vhosts/example.org/plugins/Xmpp/extlib/XMPPHP/XMLStream.php:567
PHP Fatal error: Uncaught Error: Call to undefined function split() in /var/vhosts/example.org/plugins/Xmpp/extlib/XMPPHP/XMLStream.php:266
Stack trace:
0 /var/vhosts/example.org/plugins/Xmpp/extlib/XMPPHP/XMPP.php(129): XMPPHP_XMLStream->addXPathHandler('{http://etherx ....', 'features_handle...')
1 /var/vhosts/example.org/plugins/Xmpp/lib/xmppmanager.php(145): XMPPHP_XMPP->__construct('geekplace.eu', 5222, 'gnusocial', 'U^k&l5fV53duGy', 'gnusocial', 'geekplace.eu', false, NULL)
2 /var/vhosts/example.org/plugins/Xmpp/lib/xmppmanager.php(49): XmppManager->connect()
3 /var/vhosts/example.org/lib/iomaster.php(248): XmppManager->start(Object(ImMaster))
4 /var/vhosts/example.org/lib/iomaster.php(111): IoMaster->start()
5 /var/vhosts/example.org/scripts/imdaemon.php(58): IoMaster->service()
6 /var/vhosts/example.org/lib/spawningdaemon.php(189): ImDaemon->runThread()
7 /var/vhosts/example.org/lib/spawningdaemon.php(118): SpawningDaemon->initAndRunChild(1 in /var/vhosts/example.org/plugins/Xmpp/extlib/XMPPHP/XMLStream.php on line 266
2017-08-19 17:55:47 +02:00
Mikael Nordfeldth
de8aed6a28
Added bullet point to README
2017-08-12 09:50:39 +02:00
Mikael Nordfeldth
d61375cb7f
Group autocompletion now fills in hostname part
2017-08-10 12:41:47 +02:00
Mikael Nordfeldth
4c8a8848ed
Groups can now be server-specific with !osm@gnusocial.de vs. !osm@sn.jonkman.ca
2017-08-10 12:30:11 +02:00
Mikael Nordfeldth
00cbc852b0
Make use of variable preMention signal method
2017-08-10 11:33:18 +02:00
Mikael Nordfeldth
8dd06cd8d8
Harmonize webfinger formatting and enable variable pre-mention character
2017-08-10 11:25:04 +02:00
Mikael Nordfeldth
20801a32f7
Logging term used HubSub instead of WebSub.
2017-08-07 00:19:12 +02:00
Mikael Nordfeldth
090f4a9474
Mastodon replies 201 Created for salmon slaps.
2017-08-05 16:21:34 +02:00
Mikael Nordfeldth
0ef483fb4a
preamble with newline for AtomPub output etc.
2017-08-05 10:42:38 +02:00
Mikael Nordfeldth
945920f24d
Mimetype was not recognized if longer than bare mime
2017-08-05 09:50:42 +02:00
Mikael Nordfeldth
6938d26524
List the thread config value in lib/default.php
2017-08-03 09:53:00 +02:00
Mikael Nordfeldth
dea9f43d85
Updated some PHP-related info in INSTALL
2017-08-03 09:52:04 +02:00
abjectio
90e93b9656
Added base64 encoding to get RMQ to work
2017-07-28 12:42:21 +02:00
Mikael Nordfeldth
586aaa596e
Quote URL on dupe search and better logging on upgrade
2017-07-27 19:39:55 +02:00
Mikael Nordfeldth
457d32e273
Merge branch 'takeshitakenji/gnu-social-twitter-repeat-config' into mmn_fixes
2017-07-11 22:09:12 +02:00
mmn
dd8e17a387
Merge branch 'profile' into 'nightly'
...
Change Profile->getUser() to match the current user
See merge request !129
2017-07-11 20:05:47 +00:00
mmn
93524c4be3
Merge branch 'doc-backup-restore-def-vals' into 'nightly'
...
doc: Update 'backup', 'restore' default values
See merge request !143
2017-07-11 20:01:28 +00:00
mmn
924bcd93e5
Merge branch 'notice_id-xml' into 'nightly'
...
Use the statusnet namespace for notice_id in atom feed
See merge request !136
2017-07-11 20:01:01 +00:00
Mikael Nordfeldth
aa004d03aa
Merge branch 'master' of git.gnu.io:gnu/gnu-social into mmn_fixes
2017-07-11 21:59:49 +02:00
mmn
7785219234
Merge branch 'fix-doc-twitterapi' into 'master'
...
Fix a link of doc/twitterapi
See merge request !149
2017-07-11 19:58:48 +00:00
Mikael Nordfeldth
56e2b0007c
Issue #279 raises the point of missing newlines
2017-07-11 21:58:24 +02:00
Mikael Nordfeldth
a75b1df627
Merge branch 'master' of git.gnu.io:gnu/gnu-social into mmn_fixes
2017-07-11 21:44:50 +02:00
mmn
e3cafc011e
Merge branch 'case-sensitive-openid' into 'master'
...
Fix OpenID discovery in pages using uppercase <HEAD> tag
Closes #60
See merge request !140
2017-07-11 19:41:33 +00:00
mmn
3b363d626d
Merge branch 'safe-gitignore' into 'master'
...
Ignore whole directory, not only inner contents
See merge request !145
2017-07-11 19:31:26 +00:00
mmn
d564e28f8e
Merge branch 'xmpp-fix-1' into 'nightly'
...
Fix 'from' address in the XMPP ping command
See merge request !141
2017-07-11 19:18:51 +00:00
Mikael Nordfeldth
9b19688d65
Another solution to merge request !146
2017-07-11 21:16:30 +02:00
Mikael Nordfeldth
e4d77cb9b2
Noone uses Facebook anymore.
2017-07-11 12:44:24 +02:00
Mikael Nordfeldth
05a9c11c47
Fixing HTTP_Request2_SocketWrapper so it times out
...
HTTP_Request2_SocketWrapper would never time out on an fgets() call as
discussed in issue #281 https://git.gnu.io/gnu/gnu-social/issues/281
I'm patching it here by setting the socket to non-blocking mode and
using stream_select to wait until the timeout. This patch or some
similar variant must be implemented in HTTP_Request2_SocketWrapper
to avoid the same issue for other users.
2017-07-11 12:04:09 +02:00
Mikael Nordfeldth
9919ccb8b5
HubSub now remembers recent failures and counts them
2017-07-10 20:28:45 +02:00
Mikael Nordfeldth
661930cbe6
oEmbed had bad variable reference in error message
2017-07-10 20:28:35 +02:00
Mikael Nordfeldth
6a2a54dcb5
Making upgrade.php somewhat more efficient by remember one-time-inits.
2017-07-10 20:27:37 +02:00
Mikael Nordfeldth
c9cfda5ef2
Bad constant (LOG_WARNING, not LOG_WARN)
2017-07-10 14:50:25 +02:00
Mikael Nordfeldth
4ba7c4a021
AuthCrypt README brought out of the stone age
2017-07-10 14:49:01 +02:00
Mikael Nordfeldth
74a60ab963
Rework the push mechanism a bit to a less DB dependant queue
2017-07-10 14:43:28 +02:00
Mikael Nordfeldth
3bc2454e91
Avoid excessive remote requests on oEmbed lookups
...
I noticed that each time a notice was accessed it'd do a remote lookup
with HEAD (and continue despite 404 etc.) and then another attempt to
download the resource. If this wasn't successful new attempts would be
made for each loading of the resource, which is extremely resource
intensive.
Whenever we can say "it's been n seconds since the last attempt" we
could probably enable this again - or just manually reload remote
thumbnails (as part of the StoreRemoteMedia plugin etc.)
2017-07-10 14:41:03 +02:00
Mikael Nordfeldth
a7df79ac07
Force arrays in constructors of ActivityStreamJSONDocument and JSONActivityCollection
...
Started using PHP7+ and it started complaining about count() being fed objects
that weren't "Countable". .)
2017-07-10 14:26:01 +02:00
Mikael Nordfeldth
31866be98b
Use intval on ini_get or we use a string for timeout
2017-07-10 14:10:32 +02:00
Mikael Nordfeldth
57e22d78e0
Patch DB before release, weird use of count()
2017-07-10 14:10:10 +02:00
Mikael Nordfeldth
a4a6a8469e
Updating HTMLPurifier to 4.9.3
...
Source: https://htmlpurifier.org/download
Release date: 2017-06-19
2017-07-10 13:46:07 +02:00
Mikael Nordfeldth
3158f9c33a
Update PEAR DB to 1.9.2
...
Source: https://pear.php.net/package/DB
Release date: 2015-11-24
2017-07-10 13:34:47 +02:00
Mikael Nordfeldth
711f220397
Updating PEAR Net_URL2 to 2.1.2
...
Source: https://pear.php.net/package/Net_URL2
Release date: 2016-04-18
2017-07-10 13:29:31 +02:00
Mikael Nordfeldth
a223273544
Update PEAR DB_DataObject to 1.11.5
...
Source: https://pear.php.net/package/DB_DataObject
Release date: 2015-11-10
2017-07-10 13:25:04 +02:00
Mikael Nordfeldth
61876ed232
PEAR Net_SMTP updated to 1.8.0
...
Source: https://pear.php.net/package/Net_SMTP
Release date: 2017-04-06
2017-07-10 12:53:13 +02:00
Mikael Nordfeldth
f025671b8a
PEAR Net_Socket updated to 1.2.2
...
Source: https://pear.php.net/package/Net_Socket
Release date: 2017-04-13
2017-07-09 23:09:03 +02:00
Mikael Nordfeldth
489099ca91
change default timeout setting for HTTPClient
2017-07-09 22:49:49 +02:00
Mikael Nordfeldth
08b4b73c67
Updating HTTP_Request2 to 2.3.0
...
Source: https://pear.php.net/package/HTTP_Request2
Release date: 2016-02-13 15:24 UTC
2017-07-09 22:17:52 +02:00
Mikael Nordfeldth
fb492d4bb2
Remove debug call and change how connect_timeout is set
2017-07-09 20:34:44 +02:00
Mikael Nordfeldth
f0480c34d7
Configure a default timeout for HTTP connections at 60s
...
No requests we do externally should ever take more than 60 seconds. This
could probably be changed for downloading video or whatever for any cache
plugins that want to store data locally, but in general I think even 60s
is way longer than I expect any outgoing requests should take.
This affects everything using HTTPClient, our helper class, and thus all
hub pings, subscription requests, etc. etc.
The value, afaik, includes connect_timeout and if it takes 10 seconds to
establish a connection only 50 seconds is available to transfer data.
2017-07-09 20:28:22 +02:00
Mikael Nordfeldth
3395f6081c
Endless loop nesting on ensureHub failure now fixed
...
Essentially I was missing a negation on a test if we were in rediscovery mode.
2017-06-22 14:37:32 +02:00
Mikael Nordfeldth
c9a9a8bc58
Fulltext indexes are supported in InnoDB since MariaDB 10.0.15
2017-06-22 01:37:43 +02:00
Mikael Nordfeldth
fa44e0c06e
set a 'rediscovered' parameter to avoid nesting into an ensureHub loop forever
2017-06-22 00:30:38 +02:00
Danial Behzadi
16e7b5af12
Update INSTALL
...
Step 4 of `Getting it up and running` is not applicable in newer versions.
2017-06-18 12:42:14 +00:00
Mikael Nordfeldth
5265c48d04
GNU social avatar by moshpirit / Alberto
2017-05-30 21:37:53 +02:00
MIYAGI Hikaru
b9a4053eec
fix a link of doc/twitterapi
2017-05-30 07:23:36 +09:00
Mikael Nordfeldth
1517deeeb6
Since ActivityContext::CONVERSATION changed to 'conversation' instead of 'ostatus:conversation' we need to add it ourselves
...
the xmlstringerthinger doesn't really use namespaces afaik
2017-05-06 15:27:25 +02:00
Mikael Nordfeldth
0dd68d11cb
What just happened? Not sure if me or git caused duplicate code.
2017-05-06 14:48:04 +02:00
Mikael Nordfeldth
4f37c564a5
Merge branch 'master' into mmn_fixes
2017-05-06 14:40:06 +02:00
Mikael Nordfeldth
5ad2f2873e
...and make sure we checkschema on Notice_prefs on upgrade...
2017-05-06 14:38:50 +02:00
Mikael Nordfeldth
966971bd12
Revert some of 8a4bec811b
...
use Notice_prefs instead of adding a new field. The rationale here
is simply that the Notice table was _huge_ and I rant into issues
with /tmp filling up when altering the tables. So let's just create
a new table instead.
2017-05-06 14:38:48 +02:00
Mikael Nordfeldth
7767c57087
Notice_prefs now available (I just copied Profile_prefs)
2017-05-06 14:38:47 +02:00
Mikael Nordfeldth
ba4a84602a
Output proper HTML and XML headers for single Atom entry
...
RFC5023 <https://tools.ietf.org/html/rfc5023 > specifies that the
content type parameter 'type=entry' should be used to clarify data.
2017-05-06 14:38:46 +02:00
Mikael Nordfeldth
d115f9dd1b
Output selfLink from notice asActivity[Object]
2017-05-06 14:38:45 +02:00
Mikael Nordfeldth
1ccb934541
Return false immediately if $url is empty for common_valid_http_url
2017-05-06 14:38:43 +02:00
Mikael Nordfeldth
434956fc75
Notices start saving selfLink from activities/objects
2017-05-06 14:38:42 +02:00
Mikael Nordfeldth
7da925ca70
Handle selfLink in ActivityObject
2017-05-06 14:38:41 +02:00
Mikael Nordfeldth
3a7d8efc57
...and make sure we checkschema on Notice_prefs on upgrade...
2017-05-06 13:54:42 +02:00
Mikael Nordfeldth
286b1e0ab7
Revert some of 8a4bec811b
...
use Notice_prefs instead of adding a new field. The rationale here
is simply that the Notice table was _huge_ and I rant into issues
with /tmp filling up when altering the tables. So let's just create
a new table instead.
2017-05-06 13:24:11 +02:00
Mikael Nordfeldth
2cbef2b10f
Notice_prefs now available (I just copied Profile_prefs)
2017-05-06 13:22:10 +02:00
Mikael Nordfeldth
d88e9ffd33
Output proper HTML and XML headers for single Atom entry
...
RFC5023 <https://tools.ietf.org/html/rfc5023 > specifies that the
content type parameter 'type=entry' should be used to clarify data.
2017-05-06 12:38:34 +02:00
Mikael Nordfeldth
7c829852b8
Output selfLink from notice asActivity[Object]
2017-05-06 12:26:54 +02:00
Mikael Nordfeldth
709f1bbd75
Return false immediately if $url is empty for common_valid_http_url
2017-05-06 12:25:27 +02:00
Mikael Nordfeldth
8a4bec811b
Notices start saving selfLink from activities/objects
2017-05-06 12:15:54 +02:00
Mikael Nordfeldth
7889b21e7b
Handle selfLink in ActivityObject
2017-05-06 11:57:16 +02:00
Mikael Nordfeldth
000af6d9ee
default to #addtag on !group mention
2017-05-02 21:21:53 +02:00
Mikael Nordfeldth
07458e5375
Fixed the parsing of ostatus:conversation etc.
...
Conversation will now start storing remote URL
The namespace features don't work the way they were written for here
so I fixed that, making the ostatus: namespace properly looked up and
then the homegrown getLink function looks for what is back-compat with
StatusNet etc. if I remember correctly.
2017-05-02 18:58:22 +02:00
Mikael Nordfeldth
e8eb9f9614
Less raw database dumps in debug please
2017-05-02 09:18:43 +02:00
Mikael Nordfeldth
e9ab06b59e
Fix issues with non-subscribed Ostatus_profiles
2017-05-02 09:14:30 +02:00
Mikael Nordfeldth
979c525124
I like to throw exceptions instead of using if statements.
2017-05-02 09:07:39 +02:00
Mikael Nordfeldth
06b25f384a
File_redirection->getFile could never get the file anyway if $redir->file_id was empty...
2017-05-02 09:07:00 +02:00
Mikael Nordfeldth
5af5bb2a32
Show WebSub state on remote user profiles
2017-05-01 21:18:04 +02:00
Mikael Nordfeldth
caa5fb75b3
Introduce neat function getFeedSub() on Ostatus_profile
2017-05-01 21:17:22 +02:00
Mikael Nordfeldth
f4d6710a0f
Change mentions of PuSH to WebSub
...
WebSub is probably finalised before we make a release anyway. Here is
the official spec: https://www.w3.org/TR/websub/
Mostly just comments that have been changed. Some references to PuSH <0.4
are left because they actually refer to PuSH 0.3 and that's not WebSub...
The only actual code change that might affect anything is FeedSub->isPuSH()
but the only official plugin using that call was FeedPoller anyway...
2017-05-01 11:04:27 +02:00
Mikael Nordfeldth
b3da5bdaa3
Debugging log fix.
2017-05-01 10:36:55 +02:00
Mikael Nordfeldth
f6d4d00e02
I think this will stop my daemons from endlessly looping
...
I got this which ate all my memory:
queuedaemon.php:10733] HTTPClient: HTTP HEAD https://drive.google.com/file/d/*masked*/view?usp=sharing - 200 OK
queuedaemon.php:10733] Checking for remote URL metadata for https://drive.google.com/file/d/*masked*/view?usp=sharing
queuedaemon.php:10733] HTTPClient: HTTP GET https://drive.google.com/file/d/*masked*/view?usp=sharing - 200 OK
queuedaemon.php:10733] Trying to discover an oEmbed endpoint using link headers.
queuedaemon.php:10733] Could not find an oEmbed endpoint using link headers, trying OpenGraph from HTML.
queuedaemon.php:10733] HTTPClient: HTTP HEAD https://drive.google.com/file/d/*masked*/view?usp=sharing&usp=embed_facebook - 200 OK
queuedaemon.php:10733] Checking for remote URL metadata for https://drive.google.com/file/d/*masked*/view?usp=sharing&usp=embed_facebook
queuedaemon.php:10733] HTTPClient: HTTP GET https://drive.google.com/file/d/*masked*/view?usp=sharing&usp=embed_facebook - 200 OK
queuedaemon.php:10733] Trying to discover an oEmbed endpoint using link headers.
queuedaemon.php:10733] Could not find an oEmbed endpoint using link headers, trying OpenGraph from HTML.
queuedaemon.php:10733] HTTPClient: HTTP HEAD https://drive.google.com/file/d/*masked*/view?usp=sharing&usp=embed_facebook&usp=embed_facebook - 200 OK
queuedaemon.php:10733] Checking for remote URL metadata for https://drive.google.com/file/d/*masked*/view?usp=sharing&usp=embed_facebook&usp=embed_facebook
queuedaemon.php:10733] HTTPClient: HTTP GET https://drive.google.com/file/d/*masked*/view?usp=sharing&usp=embed_facebook&usp=embed_facebook - 200 OK
queuedaemon.php:10733] Trying to discover an oEmbed endpoint using link headers.
queuedaemon.php:10733] Could not find an oEmbed endpoint using link headers, trying OpenGraph from HTML.
...ad nauseam.
2017-05-01 10:27:21 +02:00
Mikael Nordfeldth
37c97ac8fc
Message to end-user on why FeedSub failed.
2017-05-01 07:40:16 +02:00
Mikael Nordfeldth
5ac20a4d30
Clearing cache showed my layout fail!
2017-05-01 07:39:56 +02:00
Mikael Nordfeldth
45203a4992
Makes the attachment button stay within the form area...
2017-04-30 20:32:10 +02:00
Mikael Nordfeldth
bb72229d6a
Show what you're replying to in the web interface
2017-04-30 10:37:21 +02:00
Mikael Nordfeldth
16880de8f6
ensureHub on 422 status code (Superfeedr error on non-existing topic)
2017-04-30 10:29:16 +02:00
Mikael Nordfeldth
b20b9727cf
More debugging info for FeedSub PuSH self-healing
2017-04-30 09:46:15 +02:00
Mikael Nordfeldth
e21043e81c
syntax fix (throw _new_ *Exception)
2017-04-30 09:33:06 +02:00
Mikael Nordfeldth
1ecf709918
Make sure we don't receiveFeed() in the case of that exception
2017-04-30 09:31:16 +02:00
Mikael Nordfeldth
5288a6f9e2
Update huburi for FeedSub if PuSH signature is invalid
...
This because some remote server might have used third party PuSH hubs
but switch and we don't know about it.
Possible risks here are of course MITM that could force us to rediscover
PuSH hubs from a feed they control, but that currently feels ... meh.
2017-04-30 09:20:08 +02:00
Mikael Nordfeldth
c505652c15
Confirm_address::getByAddress not getAddress
...
Also fixed the error handling to match the function call.
2017-04-29 14:48:46 +02:00
Takuma YOSHIOKA
2ebdac70da
Ignore whole directory, not only inner contents
...
`dir/*` style let git ignore files and directories in `dir/`, but not
`dir/` itself.
This cause `git clean -df` to remove `dir/` **with its contents**!
To prevent `git clean -df` to remove data directories (`avatar/`, `file/`,
etc), use `dir/` (or `dir`) style in gitignore.
2017-04-29 14:22:36 +09:00
Mikael Nordfeldth
853b016a42
Separate ensureHub into function in FeedSub
2017-04-27 09:24:12 +02:00
Mikael Nordfeldth
598b51eb7a
Escaping a URI in common_debug call
2017-04-27 09:23:45 +02:00
Mikael Nordfeldth
985f3b44b7
LRDD blacklisted URL test
2017-04-26 23:24:42 +02:00
Mikael Nordfeldth
ea6d8b8bde
LRDD blacklisted URL test
2017-04-26 23:21:13 +02:00
Mikael Nordfeldth
e1df763940
Test URLs against blacklist also on PuSH subscriptions.
2017-04-26 22:43:16 +02:00
Mikael Nordfeldth
bb76af4f65
Test URLs against blacklist also on PuSH subscriptions.
2017-04-26 22:41:59 +02:00
Mikael Nordfeldth
839b3e7392
allowed_schemes was misspelled
2017-04-26 22:12:06 +02:00
Mikael Nordfeldth
adfd76f44b
allowed_schemes was misspelled
2017-04-26 22:11:28 +02:00
Mikael Nordfeldth
df7ff4ef1a
Moving form to its own file as we do nowadays
2017-04-25 21:13:29 +02:00
Mikael Nordfeldth
c71600c144
Modernise some function calls etc, to newer GNU social standards
2017-04-25 21:03:43 +02:00
Mikael Nordfeldth
5f24fc0986
Blacklist plugin enabled by default (bug fixes will come)
2017-04-25 20:43:31 +02:00
Mikael Nordfeldth
a53284fe4f
Use getByID nistead of getKV for Feedsub in PushInQueueHandler
2017-04-25 20:42:10 +02:00
Chimo
4ef05e35b8
backupaccount: Don't print page HTML in XML export
...
The current Atom/XML account backup contains the backupaccount HTML at the end
of the downloaded file. This change makes it so that only the XML is downloaded
by terminating the script before the HTML is served.
2017-04-23 19:03:40 +00:00
Mikael Nordfeldth
956cfaf844
Try https first on URL mention lookup
2017-04-22 12:29:53 +02:00
Mikael Nordfeldth
95f991cff3
Somewhat simpler regex. Thanks acct:takeshitakenji@gs.kawa-kun.com
2017-04-22 12:12:27 +02:00
Mikael Nordfeldth
c4541d8f5b
Merge branch 'master' into nightly
...
No change should be made, just making sure...
2017-04-22 11:47:29 +02:00
Mikael Nordfeldth
ee29b23bd4
Fix URL mention regular expression FOR REALZ
2017-04-22 11:46:43 +02:00
Mikael Nordfeldth
69e944e21a
Fix URL mention regular expression FOR REALZ
2017-04-22 11:45:24 +02:00
Mikael Nordfeldth
4827655632
Fix URL mention regular expression in OStatusPlugin
2017-04-22 11:26:23 +02:00
Mikael Nordfeldth
5e7a7701b9
Domain name regular expression into lib/framework.php
...
cherry-pick-merge
2017-04-22 11:26:13 +02:00
Mikael Nordfeldth
eefbfe746f
Split up OStatusPlugin preg functions so they can be reused
...
cherry-pick-merge
2017-04-22 11:24:55 +02:00
Mikael Nordfeldth
45dfa9f215
A bit more instructive debugging
2017-04-22 11:23:43 +02:00
Mikael Nordfeldth
64b72a3c9b
New domain regexp for WebFinger matching.
2017-04-22 11:23:41 +02:00
Mikael Nordfeldth
51e5cc2ac8
Fix URL mention regular expression in OStatusPlugin
2017-04-22 11:15:55 +02:00
Mikael Nordfeldth
2fc4b174c1
Domain name regular expression into lib/framework.php
2017-04-22 11:07:38 +02:00
Mikael Nordfeldth
bd6c93a811
Split up OStatusPlugin preg functions so they can be reused
2017-04-22 11:02:41 +02:00
Mikael Nordfeldth
54971842f2
A bit more instructive debugging
2017-04-22 10:55:24 +02:00
Mikael Nordfeldth
0fd83f0028
New domain regexp for WebFinger matching.
2017-04-22 10:51:03 +02:00
Mikael Nordfeldth
e98bceec10
Import backlog on new subscription.
...
Danger is when importing a new feed that may be maliciously crafted
to contain a zillion entries.
2017-04-21 09:31:27 +02:00
Mikael Nordfeldth
f51cb6fca9
Split OStatusPlugin FeedSub receive into two parts
...
FeedSub::receive now only handles the PuSH verification
FeedSub::receiveFeed is protected and only parses+imports feed XML
2017-04-21 08:13:39 +02:00
Chimo
63f9af307d
doc: Update 'backup', 'restore' default values
2017-04-19 22:56:45 -04:00
Mikael Nordfeldth
3453521c9c
Less frightening interface on remote subscription
...
Instead of an error message in a red box about being unable to find the
profile, you get the title "Remote subscription" and no error message.
2017-04-19 11:44:07 +02:00
Mikael Nordfeldth
2744bdcdb7
Empty resource would throw exception
...
The "+ Remote" link on your profile page broke because of exception.
2017-04-19 11:43:58 +02:00
Mikael Nordfeldth
e87115d462
Less frightening interface on remote subscription
...
Instead of an error message in a red box about being unable to find the
profile, you get the title "Remote subscription" and no error message.
2017-04-19 11:41:34 +02:00
Mikael Nordfeldth
548e59fc99
Empty resource would throw exception
...
The "+ Remote" link on your profile page broke because of exception.
2017-04-19 11:37:43 +02:00
Andrew Engelbrecht
6ca5bb4d41
Added CAS user whitelist feature
...
This feature filters users who may log in via CAS. This is useful when
both CAS and password authentication is enabled and there is a mismatch
between some GNU social account names and CAS user names. This prevents
CAS users from logging in as someone else on GNU social.
2017-04-17 12:41:49 -04:00
Mikael Nordfeldth
2a8ab1c6ca
Merge branch 'master' into nightly
2017-04-16 11:04:58 +02:00
Mikael Nordfeldth
57f78dc61c
Merge branch 'master' of git.gnu.io:gnu/gnu-social
2017-04-16 11:04:17 +02:00
Mikael Nordfeldth
388655d19b
Handle normalized acct: URIs in ostatussub
...
Mastodon sent the proper acct: URI and not just 'user@domain' when
using the remote subscribe functionality.
2017-04-16 11:03:14 +02:00
Mikael Nordfeldth
35b0a9e3ae
Handle normalized acct: URIs in ostatussub
...
Mastodon sent the proper acct: URI and not just 'user@domain' when
using the remote subscribe functionality.
2017-04-16 11:01:16 +02:00
Andrew Engelbrecht
25b4996145
Fix 'from' address in the XMPP ping command
...
This commit corrects a syntax error that caused the XMPP daemon to
reatedly reconnect to the remote server.
2017-04-13 12:35:49 -04:00
Mikael Nordfeldth
75079320d1
Give remote Atom URL for remote profile view
2017-04-09 12:13:53 +02:00
Sandro Santilli
aac6a21c4e
Fix OpenID discovery in pages using uppercase <HEAD> tag
...
Closes #60
Equivalent change was proposed upstream:
https://github.com/openid/php-openid/pull/134
2017-04-08 09:13:59 +02:00
Mikael Nordfeldth
d2c7c83615
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2017-04-06 13:34:57 +02:00
Mikael Nordfeldth
1b3021d61c
E-mail should contain full acct uri too (FancyName)
2017-04-06 13:23:33 +02:00
mmn
550606177b
Merge branch 'fixtests' into 'nightly'
...
Got Old Unittests Passing
See merge request !131
2017-04-06 10:23:12 +00:00
mmn
24910f2363
Merge branch 'fix-twitterbridge' into 'nightly'
...
Fix TwitterBridge imported notices not displaying in timeline
See merge request !130
2017-04-06 10:20:41 +00:00
Mikael Nordfeldth
2ce2201496
Show full acct uri as html title on link mouseover
2017-04-06 11:45:58 +02:00
mmn
9e89a177c7
Merge branch 'genericons-fix' into 'nightly'
...
Fix paths for Genericons font
See merge request !132
2017-04-06 09:23:51 +00:00
mmn
bd24724560
Merge branch 'atom-post' into 'nightly'
...
Add support for Atom entry when posting status
See merge request !135
2017-04-06 09:20:38 +00:00
Mikael Nordfeldth
bc1f8b5db6
Merge branch 'master' of git.gnu.io:gnu/gnu-social into nightly
...
strk's OpenID fix
2017-04-06 11:15:37 +02:00
mmn
6679ecb9d7
Merge branch 'fix-openid-removal' into 'master'
...
Fix OpenID URI removal
See merge request !138
2017-04-06 09:12:35 +00:00
mmn
f85aa41adc
Merge branch 'normalized_openid' into 'master'
...
Normalize OpenID URI before checking it for validity
Closes #251
See merge request !139
2017-04-06 09:12:17 +00:00
mmn
f2d2f7ebe2
Merge branch 'newListItem-signatures' into 'nightly'
...
Add var type to newListItem() parameter
See merge request !137
2017-04-06 09:11:52 +00:00
Mikael Nordfeldth
b54c7f720c
add configuration option that was documented in CONFIGURE
2017-04-02 11:05:22 +02:00
Sandro Santilli
1ef206467f
Fix OpenID URI removal
...
See #252
2017-03-18 13:33:07 +01:00
Sandro Santilli
85a407e7b0
Normalize OpenID URI before checking it for validity
...
Fixes #251
2017-03-18 10:56:01 +01:00
Mikael Nordfeldth
8c7c6f3047
Merge branch 'master' into nightly
2017-03-18 01:37:04 +01:00
Mikael Nordfeldth
9fead39f36
Merge branch 'master' of git.gnu.io:gnu/gnu-social
2017-03-18 01:36:35 +01:00
Mikael Nordfeldth
948744538c
StoreRemoteMedia now checks remote filesize before downloading
2017-03-18 01:35:45 +01:00
Chimo
dc7c64592b
Add var type to newListItem() parameter
...
Fixes some "Declaration of $child::method should be compatible with
$parent::method" warnings.
2017-03-16 22:57:16 -04:00
Thomas Karpiniec
47cd054976
Use the statusnet namespace for notice_id
2017-02-04 21:59:30 +11:00
Thomas Karpiniec
132b932ff3
Add support for Atom entry when posting status
2017-02-04 20:04:02 +11:00
Mikael Nordfeldth
8b8e2825e3
Merge branch 'master' of git.gnu.io:gnu/gnu-social into mmn_fixes
2017-01-15 21:25:06 +01:00
mmn
7dcb229ab3
Merge branch 'improve-status-length-calculation' into 'master'
...
improve status length calculation for messages forwarded to Twitter
See merge request !133
2017-01-15 20:23:41 +00:00
Mikael Nordfeldth
63322989c2
if zip is fine then application/x-bzip2 is too
2017-01-11 23:30:06 +01:00
Bjoern Schiessle
f198d5d110
improve status length calculation, each link is exactly 23 characters long at Twitter
2016-12-14 15:54:02 +01:00
Roger Braun
bdac23564a
Test for correct post object in retweets.
2016-12-05 18:26:46 +01:00
Roger Braun
c741d1a52a
Make Mastodon retweets parse correctly.
2016-12-05 18:24:55 +01:00
Roger Braun
8c6c6039a2
Test for correct post object in retweets.
2016-12-05 18:24:13 +01:00
Bhuvan Krishna
099dafc4c2
Fix paths for Genericons font
...
Fix incorrect paths for Genericons font files.
Remove embedded woff in favor of file on disk. This make it easier when
packaging for distributions if the distribution wants to package
Genericons package separately.
2016-11-17 18:02:11 +05:30
Mikael Nordfeldth
c5a4921176
log with var_export (our shorthand _ve())
2016-10-23 12:14:02 +02:00
Mikael Nordfeldth
6bfc97c95d
Less spammy logs
2016-10-22 23:24:13 +02:00
Mikael Nordfeldth
6ebc5f0bff
some debugging calls and make sure $hints['feedurl'] gets set with $feeduri in case that variable is used.
2016-10-22 23:08:44 +02:00
Mikael Nordfeldth
8614cd77eb
A good plugin but not necessary as default.
2016-10-22 19:27:07 +02:00
Mikael Nordfeldth
1c5e364880
Merge branch 'master' into mmn_fixes
2016-09-13 11:26:03 +02:00
Mikael Nordfeldth
7d67eefdf5
wrong variable was referenced
2016-09-13 11:24:57 +02:00
vinzv
3e5ae79c5a
Added chimo's plugins
2016-09-02 11:37:53 +02:00
vinzv
25e4b9a35e
Add Qvitter and QvitterPlus
2016-09-02 11:34:50 +02:00
vinzv
a1c7c0ab01
Adding SensitiveContent Plugin for nsfw filtering
2016-09-02 11:34:29 +02:00
vinzv
845a0f8e2d
Merge branch 'nightly' of https://git.gnu.io/gnu/gnu-social into nightly
...
Conflicts:
lib/util.php
2016-09-02 11:32:49 +02:00
vinzv
19df5c9b50
Merge remote-tracking branch 'upstream/master' into nightly
...
Conflicts:
lib/util.php
2016-09-02 11:26:57 +02:00
Mikael Nordfeldth
3b9b9331a8
parenthesis fail
2016-09-02 01:07:09 +02:00
Mikael Nordfeldth
500ff6be1a
Merge branch 'master' into mmn_fixes
2016-09-02 01:04:54 +02:00
Mikael Nordfeldth
18670c69b2
Merge branch 'master' of git.gnu.io:gnu/gnu-social
2016-09-02 01:01:57 +02:00
Mikael Nordfeldth
a7043bf7cc
Split up source and source_link. Never trust HTML!
...
https://community.highlandarrow.com/notice/269667
or alternatively: https://social.umeahackerspace.se/conversation/495655
2016-09-02 01:00:52 +02:00
Mikael Nordfeldth
15ab9ff9e3
common_to_alphanumeric added, filtering Notice->source in classic layout
2016-09-02 01:00:08 +02:00
Mikael Nordfeldth
59b93b23e2
Split up source and source_link. Never trust HTML!
...
https://community.highlandarrow.com/notice/269667
or alternatively: https://social.umeahackerspace.se/conversation/495655
2016-09-02 00:55:46 +02:00
Mikael Nordfeldth
e6b3924a5d
common_to_alphanumeric added, filtering Notice->source in classic layout
2016-09-02 00:08:17 +02:00
www-data
160df2f2d1
Merge remote-tracking branch 'upstream/master' into nightly
2016-09-01 17:23:31 +02:00
Mikael Nordfeldth
af6a3aa456
Make Group actions ManagedAction so groupbyid works
2016-08-28 09:34:31 +02:00
Mikael Nordfeldth
cb5bcf4937
bad log constant
2016-08-28 00:16:31 +02:00
Mikael Nordfeldth
a32bfe7d87
TagCloud turned into plugin (performance issues on large installs)
2016-08-27 15:24:25 +02:00
Mikael Nordfeldth
5a008c3738
Don't redirect to tag cloud on /tag URL
...
(this is probably just while we pluginify TagCloud)
2016-08-27 15:06:12 +02:00
Mikael Nordfeldth
27022e7c39
Typing on WebFinger onRouterInitialized handler argument URLMapper $m
2016-08-27 15:00:29 +02:00
Mikael Nordfeldth
3b046ee49d
Shorthand function to check if notice has been repeated.
2016-08-27 14:42:28 +02:00
Mikael Nordfeldth
f7030b538f
neo-quitter display fixes for attachment since layout change
2016-08-25 11:26:09 +02:00
Mikael Nordfeldth
d13883ec86
Margin for oEmbed article etc.
2016-08-21 18:23:16 +02:00
Mikael Nordfeldth
6bc0030699
articles accidentally got aligned to center
2016-08-21 09:36:22 +02:00
Mikael Nordfeldth
1d791f81fa
Attachment styling
2016-08-21 09:31:26 +02:00
Mikael Nordfeldth
4314a286e3
Less convoluted attachmentlistitem function calls
2016-08-21 09:25:16 +02:00
Mikael Nordfeldth
fc06c599bc
dbqueuemanager should ignore on no-result-exceptions
2016-08-16 20:27:41 +02:00
Nym Coy
1f866fcaed
ActivityGenerationTests.php fails but doesn't crash anymore.
...
Fixed an error where a profile id was reused after another profile was
deleted, and the new profile still had the deleted role.
Fixed ActivityGenerationTests::testNoticeInfoRepeated() which was passing
User instead of Profile, throwing errors.
tests/ActivityGenerationTests.php now passes.
CommandInterpreterTest now passes.
Moved JidValidateTest to XmppValidateTest, since Jabber functionality has
moved to the XmppPlugin. Tests work but don't pass, but they are at least
skipped if XmppPlugin is not active.
LocationTest passes, but the tests are not very good. Lots of nulls.
MediaFileTest passes.
NicknameTest passes. Nickname::normalize() now throws an error if the
nickname is too long with underscores.
UserFeedParseTest passes.
URLDetectionTest passes if $config['linkify']['(bare_ipv4|bare_ipv6|
bare_domains)'] are false. Untested otherwise.
Fixed Nickname::isBlacklisted() so it does not throw an error if
$config['nickname]['blacklist'] not set.
2016-08-14 11:55:49 +05:30
www-data
12cd0af111
Merge remote-tracking branch 'upstream/nightly' into nightly
2016-08-13 22:16:35 +02:00
Nym Coy
1f5e306760
Set object_type to ActivityObject::NOTE on notices imported from Twitter. Previously was unset which caused ActivityHandler to throw an error during onStartOpenNoticeListItemElement() and the notices would not display in the timeline.
2016-08-09 21:02:57 +05:30
Mikael Nordfeldth
557e430c7d
Reference local URLs in addressee list on notices.
2016-08-06 18:32:14 +02:00
www-data
c946ddc275
Merge remote-tracking branch 'upstream/nightly' into nightly
2016-07-27 12:38:19 +02:00
Mikael Nordfeldth
563b3b1328
Using File->setTitle in oEmbed
2016-07-23 21:01:28 +02:00
Mikael Nordfeldth
d84bf83419
Created function File->setTitle(str)
2016-07-23 21:00:57 +02:00
Mikael Nordfeldth
1b3d583418
file_quota for OembedPlugin too
...
Don't download huge files that might kill memory limits.
2016-07-21 03:19:05 +02:00
Mikael Nordfeldth
809e2f6d07
Use File->getID()
2016-07-21 01:38:48 +02:00
Mikael Nordfeldth
e52275e37f
Some comparisons were incorrect (text/html;charset=utf-8 etc.)
2016-07-21 01:38:31 +02:00
Mikael Nordfeldth
1981cb7662
Select the first generated thumbnail, which should be the proper size
...
...most of the time. If all works well.
2016-07-21 00:38:16 +02:00
Mikael Nordfeldth
d5c733919b
Because the other part of the code works now, this is unnecessary
2016-07-21 00:34:40 +02:00
Mikael Nordfeldth
d230d332cf
return false to exit event, imgPath holds the path
2016-07-21 00:27:22 +02:00
Mikael Nordfeldth
13e1f0a561
VideoThumbnails shouldn't have to recreate the thumbnail all the time
2016-07-21 00:24:05 +02:00
Mikael Nordfeldth
e8e996182f
Delete file on class destruction or we do it too quickly
...
Source image was removed when trying to use it for resizeTo
2016-07-21 00:23:27 +02:00
Mikael Nordfeldth
fc440ba7e7
Easier debugging of VideoThumbnails plugin
2016-07-20 22:51:38 +02:00
www-data
883ef2414f
Merge remote-tracking branch 'upstream/nightly' into nightly
2016-07-15 17:18:45 +02:00
Mikael Nordfeldth
46c227bf3a
FileNotFoundException is more proper here
2016-07-15 13:19:16 +02:00
Mikael Nordfeldth
36cfe9f857
Delete successfully generated thumbnail (temporary sources) too.
2016-07-15 12:52:20 +02:00
Mikael Nordfeldth
1d53e7060a
Changed ShowfavoritesAction to use Action functions for profiles
2016-07-07 11:11:20 +02:00
Mikael Nordfeldth
6332a4d800
Handle FileNotStoredLocallyException in attachmentlistitem
2016-07-07 00:45:31 +02:00
Mikael Nordfeldth
f02d32b718
Reworked File->getUrl to throw exception
...
In case you require a local URL and one can't be generated, throw
FileNotStoredLocallyException(File $file)
2016-07-07 00:44:50 +02:00
Mikael Nordfeldth
4a3ed7d0ae
I don't know why we would set the mimetype as title here
2016-07-07 00:43:51 +02:00
Mikael Nordfeldth
71afb5be75
If the file is text/plain, see if we accept the extension
2016-07-06 09:34:09 +02:00
Mikael Nordfeldth
4117118e23
More specific exceptions for mimetype/extension issues.
2016-07-06 09:14:59 +02:00
Mikael Nordfeldth
b4a0bff740
Some mimetype madness!
2016-07-06 08:59:16 +02:00
www-data
14ac6e665c
Merge remote-tracking branch 'upstream/nightly' into nightly
2016-07-04 23:37:45 +02:00
Martin Lyth
b0204023c0
Fix the case of a call to sameAs()
2016-07-02 17:43:47 -04:00
Martin Lyth
c9afdae01c
Check if we're the current user before retrieving
2016-07-02 17:02:37 -04:00
Martin Lyth
a62755182c
Test user equality better in Profile->getUser()
2016-07-02 15:45:42 -04:00
Mikael Nordfeldth
3987cad9b7
Use delivered content-type to parse XML_XRD
...
In issue #205 we saw data coming in with an additional line-break before
the JSON data which fuzzed the auto-detection in XML_XRD (which assumed
a { as the first character). If we use the Content-type header from HTTP
we can avoid that issue.
2016-07-02 13:44:25 +02:00
Mikael Nordfeldth
cfd9aee57b
Better logging for issue #205
2016-07-02 13:32:23 +02:00
Martin Lyth
d7a29be3ac
Change Profile->getUser() to match the current user
...
Profile->getUser() gets the User independently from common_current_user.
This means that changes to one does not affect the other, even if they
are the same user.
This changes that, so that getUser() returns common_current_user() if
they are both the same user.
This is done to fix a bug in the user profile settings, where changes in
the language and timezone are applied to the return value of
Profile->getUser() but not propagated to common_cur_user(), which causes
the profile settings to display incorrect information until the page is
refreshed.
2016-06-30 18:24:58 -04:00
Mikael Nordfeldth
a833eaa651
Make all hash algorithms available (but whitelist by default)
...
sha1 is whitelisted only because StatusNet requires it.
2016-06-28 11:54:39 +02:00
Mikael Nordfeldth
3166a04cef
actually respond with the error message in text on Salmon calls
2016-06-25 20:50:00 +02:00
Mikael Nordfeldth
bf4acc21be
A bunch of GIFs were >5MiB!
2016-06-25 20:37:00 +02:00
Mikael Nordfeldth
ad7ebd1a8c
Even more phpseclib update related stuff.
2016-06-25 20:34:28 +02:00
Mikael Nordfeldth
d10ce6ac7c
Give Webfinger response to group queries
2016-06-25 20:13:19 +02:00
Mikael Nordfeldth
3d6e25ee5f
We have to create and populate the Notice_location table before constraint checking foreign keys.
2016-06-25 13:01:56 +02:00
Mikael Nordfeldth
d0c26fb1a4
URIFIX in Ostatus_profile, handle missing feedsub
2016-06-25 11:59:31 +02:00
Mikael Nordfeldth
f93f02f424
Managed_DataObject now has getByUri()
2016-06-25 11:59:06 +02:00
Mikael Nordfeldth
42a62da764
getByUri shorthand function for Managed_DataObject (with uri)
2016-06-25 11:52:17 +02:00
Mikael Nordfeldth
7978cd6d59
s/EmptyIdException/EmptyPkeyValueException/
2016-06-25 11:50:59 +02:00
www-data
8470a55a41
Merge remote-tracking branch 'upstream/nightly' into nightly
2016-06-24 16:47:57 +02:00
Mikael Nordfeldth
d7a4098b56
Use a separate max download limit for remote files than file_quota too
2016-06-24 16:07:57 +02:00
Mikael Nordfeldth
af23c9f7cd
StoreRemoteMedia now checks remote filesize before downloading
2016-06-24 15:56:14 +02:00
Mikael Nordfeldth
1dfac3ad63
Allow getting filesize by function
2016-06-24 15:53:23 +02:00
Mikael Nordfeldth
f1e3314bb7
StoreRemoteMedia avoids too large files
2016-06-24 15:47:02 +02:00
Mikael Nordfeldth
0adb7af9a0
Allow a quickHead request, will only return headers
2016-06-24 15:43:20 +02:00
Mikael Nordfeldth
c19f87f867
fixes issue #189 with a script lacking exception handling
2016-06-24 15:19:24 +02:00
Mikael Nordfeldth
da365be5a2
ParagonIE\ConstantTime required PHP7, going to v1.x branch
2016-06-24 14:49:52 +02:00
Mikael Nordfeldth
39e8c13afb
Properly parse incoming bookmarks
2016-06-24 13:51:40 +02:00
Mikael Nordfeldth
a4051945fd
Handle exception from Magic Envelope toXML function
2016-06-23 23:27:18 +02:00
Mikael Nordfeldth
6dcb293ba0
Unnecessarily verbose code
2016-06-23 23:03:58 +02:00
www-data
b83ff3f924
Merge remote-tracking branch 'upstream/nightly' into nightly
2016-06-23 01:33:15 +02:00
Mikael Nordfeldth
09412ac813
PrimaryNoticeList so we get InfiniteScroll on profile pages
2016-06-21 15:55:49 +02:00
www-data
1d39c9d66a
Merge remote-tracking branch 'upstream/nightly' into nightly
2016-06-21 13:36:41 +02:00
Mikael Nordfeldth
16f4583498
throw ClientException instead of clientError
2016-06-19 03:38:00 +02:00
Mikael Nordfeldth
2726478467
Bump Diaspora plugin version because of phpseclib fix
2016-06-19 03:25:03 +02:00
Mikael Nordfeldth
bac95913e8
phpseclib defaults to OAEP but we want PKCS1 in D*
2016-06-19 03:23:26 +02:00
Mikael Nordfeldth
ed97b88b04
Err, don't need that comment.
2016-06-19 02:27:50 +02:00
Mikael Nordfeldth
76114e2748
Missed some phpseclib stuff in DiasporaPlugin
2016-06-19 02:26:44 +02:00
Mikael Nordfeldth
d00f19663b
bump to beta5 since phpseclib update (which might cause some issues still)
2016-06-18 00:05:54 +02:00
Mikael Nordfeldth
47aabf4fda
Let's just put the namespaced phpseclib in extlib instead of plugins/OStatus/extlib
2016-06-18 00:00:32 +02:00
Mikael Nordfeldth
d4216d09c6
extlib required by phpseclib (ParagonIE/ConstantTime)
2016-06-17 23:58:49 +02:00
Mikael Nordfeldth
5bfd9dbaa7
repost_of -> repeat_of, also trying with isset()
2016-06-17 23:53:05 +02:00
Mikael Nordfeldth
3a8ce99a9d
Magicsig call for phpseclib\Math\BigInteger fixed
2016-06-17 23:47:00 +02:00
Mikael Nordfeldth
1839082f95
OStatus Magicsig adaptations to new phpseclib
...
Some constants have changed and the way to call RSA->sign(...) too.
2016-06-17 23:43:24 +02:00
Mikael Nordfeldth
d8af92bda2
Diaspora phpseclib update
2016-06-17 23:42:50 +02:00
Mikael Nordfeldth
09ef0c1f33
bump Linkback plugin thanks to awesome singpolyma
2016-06-17 23:22:44 +02:00
Mikael Nordfeldth
a1d064129a
Handle namespaces for new phpseclib
2016-06-17 23:21:34 +02:00
Mikael Nordfeldth
28ca5d90d9
phpseclib updated, some new features that we won't use
2016-06-17 22:44:12 +02:00
mmn
a6390007b7
Merge branch 'avatar-folder-perms' into 'nightly'
...
Display error if wrong perms on 'avatar' dir
If the 'avatar' folder isn't writeable, don't let users try to
upload/delete one (and fail). Instead, print an error message about
the misconfigured folder permission.
Ref. #196
See merge request !126
2016-06-17 16:33:20 -04:00
mmn
2e8a5aeb23
Merge branch 'tom/noreferrer' into 'nightly'
...
Use noreferrer when linkifying attachments and allow this value in purifier
If you click on a link in your main timeline this effectively identifies you to the site that you visited via the Referer header. (Who goes around reading other people's /user/all, honestly?)
Annoyingly our notice content is already HTML. Rather than attempt to parse and modify the tags in flight, this modification takes the simpler approach of adding the noreferrer tag to inline links by default when notices are composed.
See merge request !127
2016-06-17 16:32:39 -04:00
mmn
48efdc3593
Merge branch 'check-connection-on-install' into 'master'
...
Check DB connection before any possible use
This is to avoid an exception when enabling 'pgsql' backend
See merge request !121
2016-06-17 16:30:25 -04:00
mmn
005b4c8dd1
Merge branch 'strict-warnings' into 'nightly'
...
Fix some strict warnings (Action::prepare, Action::handle)
I know MR with changes to a bunch of files aren't great practice, but I figured since all the changes are one-liners it might not be a huge deal.
Related to #190
See merge request !123
2016-06-17 16:29:47 -04:00
mmn
d66b495ba8
Merge branch 'notice-location' into 'nightly'
...
Re-enable notice locations
Removed a stray 'return' statement.
See merge request !125
2016-06-17 16:28:56 -04:00
mmn
cb8bf360c4
Merge branch 'site-notice' into 'nightly'
...
Site Notice: common_purify instead of HTMLPurifier
So that we can use our custom settings (e.g: extra URI schemes) in the
site notice textbox.
Ref. #170
See merge request !124
2016-06-17 16:28:01 -04:00
mmn
d4295cfb25
Merge branch 'webmention-rocks' into 'nightly'
...
webmention.rocks
I have improved the webmention handling so that all but two of the webmention.rocks compliance tests pass now. Also improved parsing of time/authors on incoming webmentions.
See merge request !128
2016-06-17 16:26:21 -04:00
Mikael Nordfeldth
5e131aed80
Apparently medium.com uses @ frequently i URLs
...
and we skipped them because we assumed they were urlencoded when copied.
2016-06-17 11:20:36 +02:00
Stephen Paul Weber
97243c8a91
Allow 201 as well, because spec says so
2016-06-10 21:13:10 +00:00
Stephen Paul Weber
274e394d8e
Pass all but two webmention.rocks tests
2016-06-10 21:03:16 +00:00
Stephen Paul Weber
1e9077f529
Set avatar where available
2016-06-10 21:02:50 +00:00
Stephen Paul Weber
6861d2f3a1
Get avatar out of entry properly
2016-06-10 21:02:34 +00:00
Stephen Paul Weber
624584f9df
Need to strtotime before we can format the date
2016-06-10 21:02:08 +00:00
Stephen Paul Weber
4f3a031786
Use strpos check properly
2016-06-10 21:01:53 +00:00
Stephen Paul Weber
e96d7d48f5
400 code needs ClientException
2016-06-10 21:01:23 +00:00
Stephen Paul Weber
83e7ade714
When there is no useful title, class="p-name e-content"
2016-06-10 21:00:48 +00:00
Stephen Paul Weber
47e541eaec
Allow getting notice title without implying one
...
Sometimes I just want explicit titles, and not the generated "blah posted on date" text
2016-06-10 21:00:01 +00:00
Thomas Karpiniec
c1537a1e82
Use noreferrer when linkifying attachments and allow this value in purifier
2016-06-09 19:56:36 +10:00
Chimo
c81322d51a
WIP: Display error if wrong perms on 'avatar' dir
...
If the 'avatar' folder isn't writeable, don't let users try to
upload/delete one (and fail). Instead, print an error message about
the misconfigured folder permission.
Ref. #196
2016-06-04 11:08:32 -04:00
Chimo
d02c75d019
Re-enable notice locations
...
Removed a stray 'return' statement.
2016-06-01 21:56:42 -04:00
Chimo
e98d5d0c0c
Site Notice: common_purify instead of HTMLPurifier
...
So that we can use our custom settings (e.g: extra URI schemes) in the
site notice textbox.
Ref. #170
2016-06-01 03:54:28 +00:00
Chimo
9de79f0a36
Update prepare() method on Action subclasses.
...
Fixes handle()-related strict warnings such as "Strict Standards:
Declaration of AdminPanelAction::prepare() should be compatible with
Action::prepare(array $args = Array)
Ref. #190
2016-06-01 02:26:44 +00:00
Chimo
ba2975aac8
Update handle() method on Action subclasses.
...
Fixes handle()-related strict warnings such as "Strict Standards:
Declaration of AdminPanelAction::handle() should be compatible with
Action::handle()"
Ref. #190
2016-06-01 02:26:44 +00:00
Sandro Santilli
3138fa0b40
Check DB connection before any possible use
2016-05-24 16:49:50 +02:00
www-data
9545219a23
Merge remote-tracking branch 'upstream/nightly' into nightly
2016-05-17 14:00:39 +02:00
Mikael Nordfeldth
bd306bdb9f
Add /download action for attachments
2016-05-09 22:08:36 +02:00
Mikael Nordfeldth
bc70ec1263
Don't warp attachment page thumbnails
2016-05-04 11:59:52 +02:00
Mikael Nordfeldth
3a6733dc98
2-frame GIF animations weren't recognised as animated
2016-05-04 11:57:55 +02:00
Mikael Nordfeldth
6d6db77f06
Documentation update in File class file
2016-05-04 11:44:14 +02:00
Mikael Nordfeldth
a5a96dd857
Misplaced break/continue statements.
2016-05-04 11:44:00 +02:00
Mikael Nordfeldth
87dd0fbdb6
UseFileAsThumbnailException uses direct File object now
2016-05-04 11:34:50 +02:00
www-data
6a95a0cecb
Merge remote-tracking branch 'upstream/nightly' into nightly
2016-05-01 21:44:34 +02:00
Mikael Nordfeldth
60130633f0
Linkback references to unset indexes + spelling error
2016-05-01 11:36:07 +02:00
Mikael Nordfeldth
7aa9a69c2f
Link to attachment page instead of big-ass image
2016-05-01 11:35:51 +02:00
www-data
ede6dcd4ac
Merge remote-tracking branch 'upstream/master' into nightly
2016-04-27 15:16:26 +02:00
Mikael Nordfeldth
e4f688fcfd
naughty extlib fix (PHP7)
...
The explode function didn't return empty elements (which split did)
2016-04-26 02:57:14 +02:00
Mikael Nordfeldth
3e9b0d6018
split is gone, use explode. PHP7 extlib fix
2016-04-26 02:41:56 +02:00
Mikael Nordfeldth
af28160679
Naughty fix for extlib XMPPHP (PHP7)
...
I shouldn't fix extlibs, but here goes anyway. I will see if there's
an upstream library we can track which has fixed this themselves.
2016-04-26 02:41:04 +02:00
Mikael Nordfeldth
58274c99d4
Some PHP7 related package names
2016-04-26 01:50:40 +02:00
Mikael Nordfeldth
9b613029e6
Merge branch 'master' into mmn_fixes
2016-04-18 16:10:50 +02:00
Mikael Nordfeldth
844fe3924e
put local id, href and such in ostatus:conversation element
2016-04-18 16:09:36 +02:00
Mikael Nordfeldth
0959efd7be
Use constant for ATTN_PUBLIC (public collection)
2016-04-18 15:56:52 +02:00
Mikael Nordfeldth
ce65fe96ad
Oembed bugs with thumbnail generation.
2016-04-18 15:33:20 +02:00
Mikael Nordfeldth
5ccf3ed714
function declaration to match parent
2016-04-18 15:21:05 +02:00
Mikael Nordfeldth
c48508d590
use getByID (also bad variable reference)
2016-04-18 15:08:47 +02:00
Mikael Nordfeldth
107f612384
strict type comparison
2016-04-18 15:04:03 +02:00
Mikael Nordfeldth
4645033b98
"In conversation" text in noticelistitem
2016-04-08 13:44:22 +02:00
Mikael Nordfeldth
6d33c003fc
Maybe stop deleteRelated from failing on constraint checking
2016-04-04 12:04:20 +02:00
Mikael Nordfeldth
b1de90fe08
Send thr:in-reply-to as well, for clarity...
2016-04-01 23:21:57 +02:00
Mikael Nordfeldth
922b65d231
More debugging in Salmon since we get situations which can't find inReplyToID
2016-04-01 23:10:34 +02:00
Mikael Nordfeldth
547f92de07
Don't fail deleteRelated on NoProfileException
2016-04-01 06:51:19 +02:00
Mikael Nordfeldth
195285ac2f
Fix constraint checking and only run it if not already constrained
2016-04-01 06:24:11 +02:00
Mikael Nordfeldth
558cbe5b6d
Merge branch 'constraint_check_notice_table' into mmn_fixes
2016-04-01 06:14:47 +02:00
Mikael Nordfeldth
44ea8aa681
Make sure $_SERVER['HTTP_REFERER'] isset when testing value
2016-03-31 20:51:50 +02:00
Mikael Nordfeldth
8de3469957
Constraint check Notice table, need to get foreign key array!
2016-03-31 17:57:01 +02:00
Mikael Nordfeldth
299949b156
fix/legacy_http for WebFinger + some minor fixes
...
Now won't match possibly maliciously named remote profile URLs
(where the profile URL could be a notice URL for example, which
would mean the response would be incorrect)
When looking up remote entities, we should _only_ use the stored URI,
but that's for the future to do...
2016-03-30 01:32:11 +02:00
Mikael Nordfeldth
df3bcbb6cb
Possibly replace weirdly capitalized htTPs: too
2016-03-30 01:31:17 +02:00
Mikael Nordfeldth
0177c8f1cf
Use join instead of exists in SQL
2016-03-29 14:36:27 +02:00
Mikael Nordfeldth
4ea79bc396
I was too quick to save that file (File::getByUrl takes 1 arg)
2016-03-29 14:33:40 +02:00
Mikael Nordfeldth
2f91cb0df7
We should assume all verbs and such are their full URIs in our db
2016-03-29 12:57:52 +02:00
Mikael Nordfeldth
cb212ba41c
Gah, bad syntax
2016-03-29 12:55:50 +02:00
Mikael Nordfeldth
72cafe03e9
Index object_type too...
2016-03-29 12:48:25 +02:00
Mikael Nordfeldth
f8765c6166
Upgrade script for Bookmark uses joins instead of exists (performance++)
2016-03-29 12:48:00 +02:00
Mikael Nordfeldth
dcffe5d992
Forgotten File::getByUrl conversations (performance++)
2016-03-29 12:13:53 +02:00
Mikael Nordfeldth
4e2be07234
Better indexing for Notice (performance++)
2016-03-29 12:13:33 +02:00
Mikael Nordfeldth
23bb45b845
Upgrade info from Bookmark plugin
2016-03-29 12:13:23 +02:00
Mikael Nordfeldth
d4041a4a1f
a little bit more explicit logging
2016-03-28 16:41:29 +02:00
Mikael Nordfeldth
16517f019a
Embarrasing copy-paste gone too fast
2016-03-28 16:25:29 +02:00
Mikael Nordfeldth
88e2f739a9
DOMElement not DOMDocument
2016-03-28 16:23:15 +02:00
Mikael Nordfeldth
7bef2ad4cc
Update Profile Data script fixes, might work for groups too now
2016-03-28 16:19:47 +02:00
Mikael Nordfeldth
a93c69d150
OStatus update profile data script fixes
2016-03-28 15:42:41 +02:00
Mikael Nordfeldth
2e327dfcd7
Probably fixes issue with looping XMPP queue items
2016-03-28 11:33:52 +02:00
Mikael Nordfeldth
f134a423f6
rename config option site/logdebug to log/debugtrace
2016-03-27 16:36:58 +02:00
Mikael Nordfeldth
97f7e6632d
Embed attachments marked up as microformats2 (I think rather properly)
2016-03-27 16:21:43 +02:00
Mikael Nordfeldth
327b8c863e
Initial (not yet working) fetch remote plugin
2016-03-27 15:01:44 +02:00
Mikael Nordfeldth
97d177f42a
Matching inherited function definition
2016-03-27 15:01:08 +02:00
Mikael Nordfeldth
2d0153195e
Output proper remote info on WebFinger notice resources
2016-03-27 14:56:27 +02:00
Mikael Nordfeldth
7be4641040
Actually return an Ostatus_profile
2016-03-27 14:54:14 +02:00
Mikael Nordfeldth
4790db348d
FetchRemoteNotice event call in Notice (not effective yet)
2016-03-27 14:00:05 +02:00
Mikael Nordfeldth
4d382a59d0
Use HTTPClient instead of Yadis HTTPFetcher in Linkback plugin
2016-03-24 03:01:18 +01:00
Mikael Nordfeldth
9fa18fa366
HTTPClient::quickGet now supports headers as argument
...
They should be in a numeric array, already formatted as headers,
ready to go. (Header-Name: Content of the header)
2016-03-24 02:44:11 +01:00
Mikael Nordfeldth
be22886be8
Catch some exceptions in Linkback
2016-03-24 02:00:16 +01:00
Mikael Nordfeldth
49a91885c9
Strictify Notice->isPublic()
2016-03-24 01:54:33 +01:00
Mikael Nordfeldth
f522c08438
Stricter typing in Realtime plugin functions
2016-03-24 01:41:58 +01:00
Mikael Nordfeldth
6b4c331060
Attachment and file handling since we could get NULL instead of File
2016-03-23 17:53:38 +01:00
Mikael Nordfeldth
2759c3f0db
Debugging output in OStatus for easier reading+greping
2016-03-23 17:52:02 +01:00
Mikael Nordfeldth
e32f2b0a39
Not really necessary in practice but makes better queries
2016-03-23 17:51:13 +01:00
Mikael Nordfeldth
8c6d0759c7
If upgraded from http to https, keep hubsub->topic up to date too (thanks hannes2peer)
2016-03-23 15:37:55 +01:00
Mikael Nordfeldth
0767bf487e
Use the new onUpdateKeys in dataobject for tasks on-update of keys
...
sets the hashkey column of the row to sha1(topic + '|' + callback)
2016-03-23 15:22:34 +01:00
Mikael Nordfeldth
f83b81b8c4
Change config webfinger/http_alias to fix/legacy_http
...
Set $config['fix']['legacy_http'] to perform some actions that are
needed if your site used to be served over http but now has upgraded
to https!
2016-03-23 15:21:02 +01:00
Mikael Nordfeldth
250d99d997
Allow actions to be performed on updateWithKeys
...
Avoids overloading and lets dataobject classes use onUpdateKeys()
to do special stuff, like if a key is made up of a hash of other fields etc.
2016-03-23 15:19:50 +01:00
Mikael Nordfeldth
8933022edc
Forgot a microsummary route in the latest commit
2016-03-22 22:37:59 +01:00
Mikael Nordfeldth
dafe775ffa
Microsummaries had issues and were removed in Firefox 6.0 anyway
...
It is argued there are many better ways to get a "micro summary" of
a profile or site.
2016-03-22 22:31:01 +01:00
Mikael Nordfeldth
53c1750f0d
If the attachment is a photo, don't replace representation in oEmbed
2016-03-22 14:02:36 +01:00
Mikael Nordfeldth
f3f619cc41
entry attachment css
2016-03-22 00:03:22 +01:00
Mikael Nordfeldth
51840a6693
doActionPost for delete should use deleteAs
2016-03-21 18:07:29 +01:00
Mikael Nordfeldth
55544845db
Just some comment clarification
2016-03-21 17:50:06 +01:00
Mikael Nordfeldth
86ce93b376
Notice->deleteRelated should be called from delete()
2016-03-21 17:34:03 +01:00
Neil E. Hodges
39ebb64b85
Added proper enabling and disabling of sending RTs to Twitter.
2016-03-21 07:12:52 -07:00
Mikael Nordfeldth
14cb2d5398
Merge branch 'master' into mmn_fixes
2016-03-21 12:27:04 +01:00
Mikael Nordfeldth
afdd6d39ec
Some Google stuff that need to be there (or comments)
...
Note that these won't be shown to the enduser and will never be accessed automatically.
We should put the salmon-protocol stuff on ostatus.org
2016-03-21 12:25:04 +01:00
Mikael Nordfeldth
b4cbf620ab
woops, accidentally deleted updates-from rel on mass Google-deletion
2016-03-21 12:13:01 +01:00
Mikael Nordfeldth
1ebd4f342e
woops, accidentally deleted updates-from rel on mass Google-deletion
2016-03-21 12:12:24 +01:00
Mikael Nordfeldth
38f7deca78
Avoid "property of non-object" PHP notice.
2016-03-21 11:17:25 +01:00
Mikael Nordfeldth
51ef894a47
Merge branch 'master' of git.gnu.io:gnu/gnu-social into mmn_fixes
2016-03-21 03:24:15 +01:00
Mikael Nordfeldth
1e89369ef8
geometa.js doesn't exist anymore
2016-03-21 03:23:39 +01:00
Mikael Nordfeldth
a2d8305e21
Merge branch 'master' of git.gnu.io:gnu/gnu-social into mmn_fixes
2016-03-21 03:21:51 +01:00
mmn
9f84f63471
Merge branch 'new-avatar' into 'master'
...
Changed default avatar in neo-gnu for the more fun @mosphirit gnu.
For now I am going to propose only that change, the default avatar. In the future maybe we can use only one SVG instead multiple PNG but I want to do for now the less changes possible.
See merge request !116
2016-03-20 22:21:39 -04:00
Mikael Nordfeldth
241b965715
oEmbed CSS file
2016-03-21 03:12:24 +01:00
Mikael Nordfeldth
ae681b10e7
geometa.js doesn't exist anymore
2016-03-21 03:11:22 +01:00
Mikael Nordfeldth
980085a8a3
Merge branch 'master' of git.gnu.io:gnu/gnu-social into mmn_fixes
...
Conflicts:
plugins/Minify/extlib/minify/README.txt
plugins/Minify/extlib/minify/UPGRADING.txt
plugins/Minify/extlib/minify/min/README.txt
plugins/Minify/extlib/minify/min/builder/index.php
plugins/Minify/extlib/minify/min/lib/JSMin.php
plugins/Minify/extlib/minify/min/lib/Minify.php
plugins/Minify/extlib/minify/min/lib/Minify/CSS.php
plugins/Minify/extlib/minify/min/lib/Minify/CSS/Compressor.php
plugins/Minify/extlib/minify/min/lib/Minify/Controller/Page.php
plugins/Minify/extlib/minify/min/lib/Minify/Packer.php
plugins/Recaptcha/RecaptchaPlugin.php
2016-03-21 03:10:19 +01:00
mmn
43178dfe10
Merge branch 'bashrc/remove_google_references' into 'master'
...
Remove Google References
This removes most references to:
- Google Code
- Google Buzz
- Google Maps
- Google Gears
- General Google services promotion
There are still some remaining Google references, particularly a script within plugins/Minify. You might want to check that to see if it's really necessary and whether the javascript it points to is actually free software.
See merge request !117
2016-03-20 22:07:06 -04:00
Mikael Nordfeldth
50a10cf161
Minify is evil.
2016-03-21 03:02:22 +01:00
Mikael Nordfeldth
cd24f7d30a
Issue #166 - we test exif data below, no need for error output
2016-03-21 02:56:47 +01:00
Mikael Nordfeldth
78e23bd4ec
Fix issue #171 with latent htmLawed reference
2016-03-21 02:55:10 +01:00
Mikael Nordfeldth
b7c4c960e2
Don't use default_port for irc schemes
2016-03-21 02:48:37 +01:00
Mikael Nordfeldth
e64c3a1d87
irc and ircs schemes for HTMLPurifier
2016-03-21 02:46:28 +01:00
Mikael Nordfeldth
cdcf6cdb25
Hacky method to avoid cutting conversation "more" link out
2016-03-21 02:42:28 +01:00
Mikael Nordfeldth
aa3865c303
Split threaded notice list classes into own files.
2016-03-21 02:33:57 +01:00
Bob Mottram
11c57e7aee
Remove Google References
...
This removes most references to Google, with some
remaining since they may point to things which are still
relevant. References to Google Code, Google Buzz and
Google Maps have been removed
2016-03-20 13:06:58 +00:00
Carlos Sanmartín Bustos
2bb5c5806f
Changed default avatar in neo-gnu for the more fun @mosphirit gnu.
2016-03-19 12:53:59 +01:00
Mikael Nordfeldth
365f3d2aa5
Full-content oEmbed html doesn't take up all space (and renders properly)
2016-03-17 12:58:40 +01:00
Mikael Nordfeldth
102f7ab059
oEmbed neatifying (inspired by Qvitter)
2016-03-17 00:31:45 +01:00
Mikael Nordfeldth
99a2230fdb
h5 and h6 don't need margin-bottom methinks
2016-03-17 00:31:32 +01:00
Mikael Nordfeldth
bf7c035f99
only direct .inline-attachment children
2016-03-16 20:37:57 +01:00
Mikael Nordfeldth
5f5e53a8d5
Merge branch 'master' into mmn_fixes
2016-03-15 16:55:39 +01:00
Mikael Nordfeldth
b2cfbded2e
Upgrading from 1.1.x would make uri fields have length=255
2016-03-15 16:54:10 +01:00
Mikael Nordfeldth
f4833c6c91
More verbose salmon debugging
2016-03-15 16:53:19 +01:00
Mikael Nordfeldth
f32414dd93
Upgrading from 1.1.x would make uri fields have length=255
2016-03-15 16:52:57 +01:00
Mikael Nordfeldth
349e842078
UPDATE ActivityVerb
2016-03-14 15:26:03 +01:00
Mikael Nordfeldth
ca8f0f84c4
Woops, forgot to include this file!
2016-03-14 15:25:05 +01:00
Mikael Nordfeldth
0f5ebb6827
Redundant font definitions in CSS
2016-03-10 15:15:06 +01:00
Mikael Nordfeldth
5ca2a28246
Make oEmbed handle our http/https setting better.
2016-03-10 14:20:21 +01:00
Mikael Nordfeldth
566977c136
forgot 'new' after throw
2016-03-10 13:46:19 +01:00
Mikael Nordfeldth
15c16ac54e
Make sure File_thumbnail->getPath() doesn't throw NoResultException
2016-03-09 23:49:01 +01:00
Mikael Nordfeldth
bd75305560
Define-ify excluded end-characters of URL autolinking
2016-03-09 15:16:47 +01:00
Mikael Nordfeldth
c769924505
Reduce the number of allowed characters in auto-linking URLs.
2016-03-09 15:05:36 +01:00
Mikael Nordfeldth
a24c6fdb39
If our host matched in File lookup, it could throw exceptions on Router->map
2016-03-09 14:52:15 +01:00
Mikael Nordfeldth
d179afa303
Save allowed path/qstring/fragment characters in constants
2016-03-09 14:51:52 +01:00
Mikael Nordfeldth
723b49a22a
throw exception instead of clientError
2016-03-09 14:17:55 +01:00
Mikael Nordfeldth
e2c6f2f96f
Let's be consistent with URL verbs
2016-03-08 20:01:06 +01:00
Mikael Nordfeldth
e4310a57cd
Profile->noticeCount minor change
2016-03-08 20:00:58 +01:00
Mikael Nordfeldth
4c7436e328
Match empty on "" and not just NULL
2016-03-08 02:00:34 +01:00
Mikael Nordfeldth
4360c65ed9
Super special case where we should copy files instead of mv
2016-03-08 01:59:58 +01:00
Mikael Nordfeldth
3b1181dae6
Display locally stored remote GIFs as thumbnails
...
Many newspapers seem to use animated GIFs as catchy header images, which
we would fail to show from oEmbed/OpenGraph fetching since they would
want us to "use File as Thumbnail", but the only place the image filename
was stored was in File_thumbnail, for the thumbnail of that file_id which
had a URL set.
2016-03-08 01:36:24 +01:00
Mikael Nordfeldth
e43fe85454
Note that you should run upgrade procedure as the PHP user
2016-03-07 23:37:07 +01:00
Mikael Nordfeldth
cfc82591da
chmod 0775 directories we create
...
Security for the 'g+rx' should be handle by having the parent directory
inaccessible for global users, which is usually the case.
2016-03-07 23:23:32 +01:00
Mikael Nordfeldth
4e5c0e70a6
fillConfigVoids to set default value of empty config options
2016-03-07 22:55:52 +01:00
Mikael Nordfeldth
265fa12917
Relatively experimental change to store thumbnails in 'file/thumb/' (by default)
2016-03-07 22:33:34 +01:00
Mikael Nordfeldth
a3b265a477
Portability for filepath in File
2016-03-07 20:13:07 +01:00
Mikael Nordfeldth
41b64cb8a3
static function declaration
2016-03-07 20:09:15 +01:00
Mikael Nordfeldth
a0336ce48b
Unnecessary debug output
2016-03-06 18:15:36 +01:00
Mikael Nordfeldth
d9538183bd
Use information about activityschema public mention for Notice scope
2016-03-06 17:47:35 +01:00
Mikael Nordfeldth
158b323767
Declare AdminpanelAction::canAdmin as static, since that's how it's used.
2016-03-06 17:31:40 +01:00
Mikael Nordfeldth
6ec72b2978
Move mail_confirm_address out of mail.php
2016-03-06 17:27:40 +01:00
Mikael Nordfeldth
47ae21c08e
Don't resend confirm_address if profile is silenced
2016-03-06 16:45:29 +01:00
Mikael Nordfeldth
e9516ea4dd
Allow gopher: scheme in link href
2016-03-06 03:39:34 +01:00
mmn
0785e2910f
Merge branch 'no_sandboxed_repeats_branch' into 'nightly'
...
Don't include repeated notices from sandboxed users in the public timeline
See merge request !115
2016-03-05 08:08:42 -05:00
Mikael Nordfeldth
97ac722b24
Accessibility navigation improvement
2016-03-05 12:42:53 +01:00
Mikael Nordfeldth
7ca0ff9a19
MediaFile::fromUpload handles missing local file better
2016-03-05 12:05:12 +01:00
Mikael Nordfeldth
1db02d7f36
filename_base option isn't optimal
...
For different "download filenames" we should use some other method.
2016-03-05 11:59:46 +01:00
Mikael Nordfeldth
204a8f1fcc
PEAR Mail package updated to 1.3.0
...
1.3.0 (stable) was released on 2016-01-31
Source: https://pear.php.net/package/Mail
2016-03-05 02:54:13 +01:00
Mikael Nordfeldth
57d57b8d8f
Handle reuploads via filehandle better if original is missing
2016-03-05 01:26:34 +01:00
Mikael Nordfeldth
bf34f730dd
Use $this->scoped in AvatarsettingsAction
2016-03-05 01:03:48 +01:00
Mikael Nordfeldth
952f68fed5
File upload logging for dummies
2016-03-05 00:59:39 +01:00
hannes
7d4658643d
the repeated notice can be from a sandboxed user too
2016-03-04 16:53:57 -05:00
mmn
a9bdf761e8
Merge branch 'remote-media-blacklist-mk2' into 'nightly'
...
add server blacklist to StoreRemoteMedia plugin
allows server admins to block local storage of remote media from particular servers while still allowing a default policy of acceptance
See merge request !114
2016-03-03 20:17:23 +00:00
Saul St John
30e70c4697
update readme
2016-03-02 16:05:40 +00:00
Saul St John
43754c7f17
add blacklist to StoreRemoteMedia plugin
2016-03-02 15:41:17 +00:00
Mikael Nordfeldth
feb97cfc22
Resend confirm_address stuff, please read its NOTE first
2016-03-02 15:48:18 +01:00
Mikael Nordfeldth
a262c16f06
Catch exception on delete of Confirm_address in a plugin
2016-03-02 15:37:47 +01:00
Mikael Nordfeldth
175b7e8541
Refactor some ConfirmaddressAction stuff
2016-03-02 15:31:48 +01:00
Mikael Nordfeldth
867cb225b6
Merge branch 'master' into mmn_fixes
2016-03-02 14:39:19 +01:00
Mikael Nordfeldth
346a73c36f
Fix a regression in 1f76c1e4 that stopped sending email confirmation on registration
2016-03-02 14:38:34 +01:00
Mikael Nordfeldth
97d8e4571f
Fix a regression in 1f76c1e4 that stopped sending email confirmation on registration
2016-03-02 14:35:08 +01:00
Mikael Nordfeldth
dc1ceca86e
Some more Microformats2 data for notices and rendering
2016-03-02 13:29:54 +01:00
Mikael Nordfeldth
6529fdd28d
Proper Microformats2 h-entry p-name + u-uid markup
2016-03-02 13:10:02 +01:00
Mikael Nordfeldth
e4e0a39dad
Only OStatus distribute if profile hasRight to PUBLICNOTICE
2016-03-02 12:42:09 +01:00
Mikael Nordfeldth
53772ba305
Some rights one does not have if either sandboxed or silenced
2016-03-02 12:41:56 +01:00
Mikael Nordfeldth
d6598e790c
Introduce a ConfigException
2016-03-02 12:33:06 +01:00
Mikael Nordfeldth
9534969c05
Don't set is_local=LOCAL_NONPUBLIC on sandboxed user notices
...
Let's decide whether they are nonpublic by testing them when the notice
is shown instead.
2016-03-02 12:26:23 +01:00
Mikael Nordfeldth
a3b2118906
Make the public streams ModeratedNoticeStream (hide sandboxed users etc.)
...
Which streams should be put under ModeratedNoticeStream is probably open
to debate. But at least the public ones should hide the posts from users
that are sandboxed.
2016-03-02 11:50:50 +01:00
Mikael Nordfeldth
b4271a3533
Stricted typing + protected on FilteringNoticeStream->filter
2016-03-02 11:40:43 +01:00
Mikael Nordfeldth
79d68a52d0
No 'acct:' in FancyName please.
2016-03-02 10:49:33 +01:00
Mikael Nordfeldth
9a89990293
Some changes since getFancyName() is longer with full acct: URI
2016-03-02 00:13:28 +01:00
Mikael Nordfeldth
7ec69e4215
User->hasBlocked typing
2016-03-02 00:04:31 +01:00
Mikael Nordfeldth
99fbb181c1
Translation changes, use FancyName in email subject
2016-03-01 23:53:36 +01:00
Mikael Nordfeldth
4abb3f19bf
Make Profile->getFancyUrl() somewhat better on fallback
...
It tries to get a referential identifier apart from the fullname trying
with acct: URI, profile URL and lastly URI.
2016-03-01 23:48:32 +01:00
Mikael Nordfeldth
ddd60e7142
Make Profile->getFancyName() return including the acct URI
2016-03-01 23:37:38 +01:00
Mikael Nordfeldth
47f408ca7c
Strict typing for mail_notify_attn
2016-03-01 23:37:11 +01:00
Mikael Nordfeldth
e3431a2c91
Iterate through input=file attachments (not multi yet)
2016-03-01 18:20:50 +01:00
Mikael Nordfeldth
e41809af89
Nothing interesting was made in this commit.
2016-03-01 16:30:00 +01:00
Mikael Nordfeldth
a112e7f9a4
Use another method of detecting unspecified defaultImage size
2016-03-01 15:00:52 +01:00
Mikael Nordfeldth
63c087a255
Consistent behaviour for ScopingNoticeStream $scoped
...
We don't guess the current profile anymore if the value of the profile === -1
Also sets $this->scoped for all ScopingNoticeStream inheritors, which just
like in an Action can be null if we're not scoped in any way (logged in).
2016-03-01 14:51:47 +01:00
Mikael Nordfeldth
7862b853bf
Make javascript XHR timeout a variable.
...
SN.V.xhrTimeout = [time in milliseconds];
2016-03-01 13:10:18 +01:00
Mikael Nordfeldth
da34491c59
Woops, undefined $type there.
2016-02-28 20:50:45 +01:00
mmn
d1b294e1ac
Merge branch 'delete_group_logo' into 'nightly'
...
Now we can delete a group logo.
I added a function of deleting a group logo.
I'm not sure we should delete group's avatar through Avatar::deleteFromProfile like on line 426:
```php
Avatar::deleteFromProfile($this->group->getProfile());
```
See merge request !84
2016-02-28 18:45:31 +00:00
mmn
b9a11f8c21
Merge branch 'fix-author-fallback' into 'nightly'
...
Fix author fallback
Previously if there was no discernable author the nickname "Array"
would end up used. This was a bug, obviously. It is fixed now.
See merge request !111
2016-02-28 18:42:36 +00:00
Mikael Nordfeldth
b8643f73b7
No need to set $threads = 0 on the line before it's set ;)
2016-02-28 19:40:16 +01:00
mmn
23651c6142
Merge branch 'nightly' into 'nightly'
...
Enable configuration option for number of threads used by queuedaemons.php
Could we change the script for queuedaemon.php to using a configuration setting if not arguments such as -t or --threads is set?
Example in configuration file:
```
$config['queue']['threads'] = 15; //Spawning 15 threads for handling the queue
```
See merge request !105
2016-02-28 18:36:54 +00:00
Mikael Nordfeldth
2696e13b19
Refactoring ApiStatusesDestroyAction
2016-02-28 19:35:03 +01:00
Mikael Nordfeldth
446c930823
Change to more recent code style in ApiStatusesDestroyAction
2016-02-28 19:23:13 +01:00
Mikael Nordfeldth
781209a23b
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into mmn_fixes
2016-02-28 19:19:46 +01:00
mmn
065f707bd7
Merge branch 'mods_can_delete_others_notices_branch' into 'nightly'
...
moderators can delete others' notices using the api
See merge request !112
2016-02-28 18:19:11 +00:00
Mikael Nordfeldth
6c43e9c2e0
Verify loaded config function, must be completed further.
2016-02-28 13:31:21 +01:00
Mikael Nordfeldth
747c91210f
HTMLPurifier cache settings, put stuff in subdir of get_sys_temp_dir()
2016-02-28 13:30:47 +01:00
Mikael Nordfeldth
cd978fa153
Edited the list of allowed rel values
2016-02-28 13:16:52 +01:00
abjectio
12ad588a9b
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2016-02-27 20:37:03 +01:00
hannes
6a0007c410
moderators can delete others' notices using the api
2016-02-27 01:03:24 +00:00
Stephen Paul Weber
9dc4f13579
Fix author fallback
...
Previously if there was no discernable author the nickname "Array"
would end up used. This was a bug, obviously. It is fixed now.
2016-02-26 22:06:04 +00:00
Mikael Nordfeldth
12f1707a74
Ostatus_source filled no purpose whatsoever
2016-02-26 22:37:26 +01:00
Mikael Nordfeldth
b4dc060d75
Don't auto-silence other users by IP by default
2016-02-26 16:10:03 +01:00
Mikael Nordfeldth
ba51a696d2
Slightly more correct log message in index.php
2016-02-26 14:53:12 +01:00
Mikael Nordfeldth
52a3764ae4
Resolve relative URLs (assuming URI.Base==notice URL)
...
The real way to do this would be to get the xml:base property from
the Atom feed but it's probably not there in any posts we see today.
2016-02-26 14:46:26 +01:00
Mikael Nordfeldth
1e6520fddd
Woops, forgot to skip the / in path
2016-02-26 14:13:46 +01:00
Mikael Nordfeldth
6a4470912f
Fiddling with merge request #98 to use internal routing functions
2016-02-26 14:10:32 +01:00
Mikael Nordfeldth
8356c2495c
Use mb_* and strict === comparison
2016-02-26 13:52:25 +01:00
mmn
722ff4d9c0
Merge branch 'foolproof_file_redirection_branch' into 'nightly'
...
Foolproof file redirection
This solves an issue when our internal /attachment/{file_id} links are shortened with an remote shorteners (which caused the /attachment/{file_id} links to be saved to the File table and a thumbnail of a thumbnail being generated)
See merge request !98
2016-02-26 12:49:10 +00:00
Mikael Nordfeldth
a3c5ef59d6
Fix merge #101 by replacing a non-working Yahoo! link with Wikipedia
...
The link was meant to describe robots.txt crawl-delay info
2016-02-26 13:41:14 +01:00
mmn
5227483855
Merge branch 'rm-short-urls-docs' into 'nightly'
...
CONFIGURE: Replace short urls with their target
Transparency and resilience against shorteners going away.
See merge request !101
2016-02-26 12:38:26 +00:00
Mikael Nordfeldth
21778d057e
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into mmn_fixes
2016-02-26 13:37:32 +01:00
Mikael Nordfeldth
826503766e
Jean Lucas mentioned that PEAR::Net_Socket was outdated
...
Updated Net_Socket to 1.0.14 (stable) was released on 2013-05-24
https://pear.php.net/package/Net_Socket
2016-02-26 13:35:53 +01:00
Mikael Nordfeldth
1414abfe95
Jean Lucas mentioned PEAR::Net_SMTP was outdated
...
Net_SMTP updated to 1.7.1 (stable) was released on 2015-09-07
https://pear.php.net/package/Net_SMTP
2016-02-26 13:34:07 +01:00
mmn
dc51354316
Merge branch 'readme-plugins' into 'nightly'
...
Readme plugins
* Adds several plugin READMEs
They are pretty basic, but it's a start.
* Changes status.net/wiki URLs to git.gnu.io
The status.net wiki is dead.
See merge request !103
2016-02-26 12:32:42 +00:00
mmn
fae9e27365
Merge branch 'group-autocomplete' into 'nightly'
...
Fix !group autocomplete
"Call to undefined method User_group::getFullname"
See merge request !108
2016-02-26 12:30:19 +00:00
mmn
d500fb8598
Merge branch 'remove-openid' into 'nightly'
...
Fix: Cannot remove OpenID
OpenidsettingsAction::removeOpenID() was comparing and int with a string
so always displayed "That OpenID does not belong to you."
See merge request !107
2016-02-26 12:30:01 +00:00
Mikael Nordfeldth
c58228195b
Make sure the saved Notice has an ID
2016-02-26 01:11:20 +01:00
Mikael Nordfeldth
519e3308ab
Use mb_strlen to see if something is an empty string
2016-02-26 01:04:59 +01:00
Mikael Nordfeldth
29662eef5e
Mentioning matches (@this too) now.
2016-02-26 00:08:51 +01:00
Mikael Nordfeldth
2730510393
User friendlieness in scripts/delete_notice.php
2016-02-26 00:06:04 +01:00
Mikael Nordfeldth
2669c51265
Allow sgf files if they're recognized in mime search
...
They are Go game files used on lamatriz.org. Note that my server
doesn't actually recognize these files and can identify the mime type,
but my browser did for some reason.
2016-02-26 00:05:07 +01:00
Mikael Nordfeldth
aeb2e282db
Commented on the mime extension matching regexp
2016-02-25 22:32:54 +01:00
Mikael Nordfeldth
4d17d95335
Try to get mime data before hashing (cpu intensive)
2016-02-25 22:31:45 +01:00
Mikael Nordfeldth
bac37d1714
syntax error
2016-02-25 22:17:44 +01:00
Mikael Nordfeldth
e6e1705852
Make uploads work properly if we accept _all_ attachment types
...
Also introduced $config['attachments']['extblacklist'] that can disable
certain file extensions (or rewrite them, for example php => phps)
2016-02-25 22:15:54 +01:00
Mikael Nordfeldth
28d9f82ab1
Merge branch 'master' into mmn_fixes
2016-02-25 20:13:39 +01:00
Mikael Nordfeldth
6336248d71
Notice getRendered() can now be called on uninserted notices
2016-02-25 20:13:00 +01:00
Mikael Nordfeldth
67aff528f5
socialfy-your-domain made people think you needed manual interaction
...
I don't know why, but people started following those instructions for no
apparent reason and it ended up causing a bunch of federation issues or
homegrown cron script messes.
Maybe changing the name to "another" instead of "your" domain will make
people stop doing stuff randomly.
2016-02-25 20:12:56 +01:00
Mikael Nordfeldth
93f5043230
Merge branch 'master' into mmn_fixes
2016-02-25 19:47:51 +01:00
Mikael Nordfeldth
80f7a5f025
$metadata->thumbnail_url is not guaranteed to be set
...
We should probably have a separate class for this, so we can more
easily combine different technologies similar to oEmbed/OpenGraph.
2016-02-25 19:47:16 +01:00
Mikael Nordfeldth
4239c952d2
$metadata->thumbnail_url is not guaranteed to be set
...
We should probably have a separate class for this, so we can more
easily combine different technologies similar to oEmbed/OpenGraph.
2016-02-25 19:46:17 +01:00
Mikael Nordfeldth
e69f878241
Notice getRendered() can now be called on uninserted notices
2016-02-25 15:48:37 +01:00
Mikael Nordfeldth
6d3aa3276a
socialfy-your-domain made people think you needed manual interaction
...
I don't know why, but people started following those instructions for no
apparent reason and it ended up causing a bunch of federation issues or
homegrown cron script messes.
Maybe changing the name to "another" instead of "your" domain will make
people stop doing stuff randomly.
2016-02-25 12:33:28 +01:00
Mikael Nordfeldth
e3e3a91734
Correct comment on Notice->conversation in table schema
2016-02-24 19:34:44 +01:00
Chimo
54da2526ed
Fix !group autocomplete
...
"Call to undefined method User_group::getFullname"
2016-02-24 13:00:15 -05:00
Chimo
99f2aba6e1
Fix: Cannot remove OpenID
...
OpenidsettingsAction::removeOpenID() was comparing and int with a string
so always displayed "That OpenID does not belong to you."
2016-02-24 12:42:41 -05:00
Mikael Nordfeldth
128a00c4ab
Include feeds in Link HTTP headers, for easier discovery
2016-02-24 16:48:44 +01:00
Mikael Nordfeldth
1d0a448e07
Publish rel="me" in Link HTTP headers
2016-02-24 16:43:09 +01:00
Mikael Nordfeldth
731fd01139
Allow easy fetching of rel="me" values
2016-02-24 16:42:54 +01:00
Mikael Nordfeldth
3ef573f67c
Default to profile size in Avatar::defaultAvatar
2016-02-24 16:42:35 +01:00
Mikael Nordfeldth
e6f07d8554
Use in_array instead. Now we get third party responses to contextually interesting threads
...
I think this solves much of the "third party conversation" issues, assuming involved parties
are using modern GNU social instances.
2016-02-24 00:19:27 +01:00
Mikael Nordfeldth
31c9b2c1d8
Check the notice context for users in UsersalmonAction
2016-02-23 23:56:43 +01:00
Mikael Nordfeldth
9319033ff0
Properly attach activityobjects
...
For some reason they were written to ->object, which is incorrect as
we use the objects[] array (which usually just holds one entry though)
2016-02-23 23:50:57 +01:00
Mikael Nordfeldth
0eb5122817
Check that the user is in the context of a salmon slap
2016-02-23 23:42:41 +01:00
abjectio
6bcfc73175
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2016-02-23 21:13:58 +01:00
Mikael Nordfeldth
d672547112
getAliases should be only a list (numeric array)
2016-02-23 14:33:09 +01:00
Mikael Nordfeldth
e16f7d04a8
Let OpenID match against aliases (fix fancyurl stuff etc.)
2016-02-23 14:15:08 +01:00
Mikael Nordfeldth
b59dacb806
getAliases for Profile and Notice
...
Also move fancyurlfix into site-wide $config['fix']['fancyurls']
TODO: getByUri should make use of this directly I guess?
2016-02-23 14:00:59 +01:00
Mikael Nordfeldth
5f7032dfee
Verify that authenticated API calls are made from our domain name.
...
Evil forms on other websites could otherwise potentially be configured
to have action="https://gnusocial.example/api/statuses/update.json " or
whatever. XHR is already blocked with CORS stuff.
Really, why do browsers allow cross domain POSTs at all? Sigh. The web.
2016-02-22 15:19:10 +01:00
Mikael Nordfeldth
c67b89e56b
Make WebFinger fancyurlfix configurable
2016-02-21 20:05:32 +01:00
Mikael Nordfeldth
ce803f6d06
WebFinger aliases with 'index.php/'
2016-02-21 20:00:07 +01:00
Mikael Nordfeldth
1edb1bbc17
Claim that we are the URL without index.php/ in webfinger response
2016-02-21 19:09:39 +01:00
Mikael Nordfeldth
893d117309
throw new, not just throw
2016-02-21 19:01:37 +01:00
Mikael Nordfeldth
0c17c32267
Let the WebFingerPlugin lookup profile resources with index.php/ too
2016-02-21 18:48:48 +01:00
Mikael Nordfeldth
23e66bef64
common_fake_local_fancy_url to remove index.php/ from a local URL
2016-02-21 18:48:18 +01:00
Mikael Nordfeldth
d16a883e17
Allow lookup of User->getByUri (throws NoResultException)
2016-02-21 18:47:47 +01:00
Mikael Nordfeldth
b23cc7465f
Keep a unique set of WebFingerResource aliases
2016-02-21 18:47:32 +01:00
Mikael Nordfeldth
afbdcf8938
Don't publish mbox_sha1sum in FOAF by default.
...
We say the email is private data, so reasonably we shouldn't reveal it
indirectly through a hash sum: http://xmlns.com/foaf/spec/#term_mbox_sha1sum
2016-02-19 00:10:05 +01:00
Mikael Nordfeldth
a838c90951
Only show "public:site" in ToSelector if notice/allowprivate is true
2016-02-18 00:33:16 +01:00
Mikael Nordfeldth
f68d1ade3f
Put "Everyone" and "Everyone at [local instance]" at the top of ToSelector
2016-02-18 00:32:09 +01:00
Mikael Nordfeldth
543d968b81
NoAcctUriException->profile not $e directly
2016-02-18 00:13:59 +01:00
Mikael Nordfeldth
a361fdbd77
Sort ToSelector by AcctUri
2016-02-18 00:05:09 +01:00
Mikael Nordfeldth
73dbc5ca1b
Use ToSelector choice again.
2016-02-17 23:44:15 +01:00
Mikael Nordfeldth
d9b649642d
Show notice feed URLs (and author)
2016-02-17 23:32:56 +01:00
Mikael Nordfeldth
d2c11925bf
To-selector padlock only shown if site config notice/allowprivate is true
2016-02-17 23:06:11 +01:00
Mikael Nordfeldth
5fbb01130a
By default, disallow users to set private_stream
2016-02-17 22:58:31 +01:00
Mikael Nordfeldth
47dc15c9f6
Describe that we don't allow empty fullnames.
2016-02-17 22:48:32 +01:00
Mikael Nordfeldth
d6bf90cfb7
If profile fullname is 0 chars use nickname
2016-02-17 22:43:45 +01:00
Mikael Nordfeldth
ade4518ae4
Make the Link header give URI for WebFinger lookup
2016-02-17 22:36:33 +01:00
Mikael Nordfeldth
422d475e44
Differentiate two similar log warning messages
2016-02-17 21:57:52 +01:00
hannes
501d081d3b
getKV doesn't throw exception
2016-02-16 19:16:05 +00:00
Mikael Nordfeldth
d2507a6266
Gotta declare FullNoticeStream as abstract class
2016-02-16 02:24:38 +01:00
Mikael Nordfeldth
46829c6d3c
FullNoticeStream selects all verbs.
2016-02-16 02:21:39 +01:00
Mikael Nordfeldth
2d1b70c94d
created column was ambigououuuouuus
2016-02-15 09:59:34 +01:00
Mikael Nordfeldth
2301862ae6
We only want POST and SHARE in the inbox/home timeline right?
2016-02-15 09:59:18 +01:00
Mikael Nordfeldth
dcb7ce36d8
Show shares in public timeline
...
Also, the unselect rule for DELETE was useless anyway since it would
already have been filtered out by not having true.
(the => false stuff are for when you want ALL _except_ that)
2016-02-14 20:53:26 +01:00
Mikael Nordfeldth
e2a090c9cc
Use NoticeStream::filterVerbs for filtering in noticestreams
2016-02-14 20:46:13 +01:00
Mikael Nordfeldth
c23c3a4f53
Might as well put a FILTER_SANITIZE_EMAIL there
...
Not that I think we could break out of the directory since
we use basename, but you never know... maybe there's a unicode
bug in PHP or something.
2016-02-13 14:06:05 +01:00
Mikael Nordfeldth
4bf26eff4c
socialfy-your-domain updated for webfinger (not tested)
2016-02-13 13:57:15 +01:00
Mikael Nordfeldth
be14e15dac
Hide attachments in notices by silenced profiles
2016-02-13 13:17:39 +01:00
Mikael Nordfeldth
fbcca62ae1
listGet was not meant for that really
2016-02-13 01:19:47 +01:00
Mikael Nordfeldth
8ef2abf30b
Render RegiserThrottle extra profile data properly
2016-02-13 01:16:34 +01:00
Mikael Nordfeldth
799c2e47fe
Don't depend on ModLog
2016-02-13 01:10:01 +01:00
Mikael Nordfeldth
be35975b12
RegisterThrottle list-profiles-by-ip
2016-02-13 01:02:18 +01:00
Mikael Nordfeldth
557ad2d1fd
Show user registration IP to users who can see ModLog
2016-02-13 00:51:43 +01:00
Mikael Nordfeldth
c7c34ec05a
Only administrators can delete other privileged users.
2016-02-12 15:00:18 +01:00
Mikael Nordfeldth
83f679fb57
Profile->isPrivileged() to check if users have more rights than to post etc.
2016-02-12 14:47:49 +01:00
Mikael Nordfeldth
3cef75bcac
Update the comment on silencing privileged users in ModHelper
2016-02-12 14:47:44 +01:00
Mikael Nordfeldth
e5ad98e601
Silence action can only be used on non-priviliged users
2016-02-12 14:22:25 +01:00
Mikael Nordfeldth
5dce08d068
Add Profile::ensureCurrent() to verify we _certainly_ got a Profile.
2016-02-12 13:52:48 +01:00
Mikael Nordfeldth
f10625f8bc
file and avatar dirs on instances with no such dirs in filesystem
2016-02-12 02:29:33 +01:00
Mikael Nordfeldth
338df7e35b
Fix Nickname::isSystemPath() work properly for routes
2016-02-12 02:21:11 +01:00
Mikael Nordfeldth
c8753353ed
Do not delete_orphan_files on an instance with Qvitter
2016-02-12 01:45:47 +01:00
Mikael Nordfeldth
913595780f
And LEFT JOIN to actually get all results
2016-02-12 00:05:36 +01:00
Mikael Nordfeldth
1471defff3
...and avoid duplicate results...
2016-02-11 23:38:12 +01:00
Mikael Nordfeldth
05fea4cdc6
Aurhg, and get all the properties, not just id
2016-02-11 22:54:29 +01:00
Mikael Nordfeldth
2198f39597
Haha, it essentially became a NOOP with the last commit
2016-02-11 22:49:45 +01:00
Mikael Nordfeldth
6f2fbd448d
Fixed the delete orphan script to include deleted notices
...
The file_to_post table sometimes had post_id with values that did not
exist in the notice table.
2016-02-11 22:43:26 +01:00
Mikael Nordfeldth
38a187b93e
Delete orphan files maintenance script
...
When deleting a profile it'll delete its notices and the coupling to
file entries, but not the file entries themselves (and thus not the
files). So if one to delete a person uploading offending images, then
the images are left behind and can be hotlinked. This will remove it.
2016-02-11 22:19:56 +01:00
Mikael Nordfeldth
7fdcbd56d5
XMPP URI scheme for HTMLPurifier
2016-02-11 21:31:50 +01:00
abjectio
70d85c58e2
Enable configuration option for number of queuedaemon threads
2016-02-11 00:24:06 +01:00
Mikael Nordfeldth
67dfc0a046
application/xml allowed in uploads
2016-02-11 00:04:14 +01:00
Mikael Nordfeldth
b9d35659c8
Stricter exception check
2016-02-10 04:43:30 +01:00
Mikael Nordfeldth
733debd9b3
Use thumbnail upscaling config value
2016-02-10 04:40:54 +01:00
Mikael Nordfeldth
8806cce735
Default to avoid upscaling of thumbnails. 45x45=>450x450 is ugly
2016-02-10 04:40:10 +01:00
Mikael Nordfeldth
dd229e855a
Allow finding the "original remote thumbnail"
...
This will probably cause older oEmbed images not to show, since they
probably were updated to use empty url entries because they were thought
of as local ones. During a migration period maybe you want to change
the default value of notNullUrl to 'false' in File_thumbnail::byFile(...)
2016-02-10 04:37:43 +01:00
Mikael Nordfeldth
893d888152
Add urlhash field to File_thumbnail for indexing
2016-02-10 04:15:41 +01:00
Mikael Nordfeldth
49b7648fea
Managed_DataObject gets onInsert and onUpdate
2016-02-10 03:37:27 +01:00
Mikael Nordfeldth
d0b2d86ca1
background is not used, so removed from documentation
2016-02-10 02:32:17 +01:00
Mikael Nordfeldth
9f961597c6
Document site/sslproxy config value
...
Should be put into installation configuration too. Maybe a sample
and commented out entry in config.php as well.
2016-02-10 01:11:43 +01:00
Mikael Nordfeldth
a61235086b
Use config site/sslproxy to force HTTPS (i.e. using reverse proxy to enable it)
...
Usage in config.php: $config['site']['sslproxy'] = true;
Add this to documentation...
2016-02-10 01:05:02 +01:00
Mikael Nordfeldth
ec257d940a
Either use or don't use HTTPS
...
The risk of injection attacks using HTTP is too great to allow a
site that allows both HTTP and HTTPS...
2016-02-10 00:57:39 +01:00
Mikael Nordfeldth
dcf29c2a07
s/isHTTPS/useHTTPS/ for HTTPS URL generation
2016-02-10 00:38:14 +01:00
Mikael Nordfeldth
eaa394ed7d
bitcoin schema for HTMLPurifier
2016-02-08 20:20:31 +01:00
Chimo
a614205663
Add plugin READMEs
2016-02-08 17:48:37 +00:00
Chimo
2c5cba28b6
Change status.net/wiki URLs to git.gnu.io
2016-02-08 17:48:10 +00:00
Mikael Nordfeldth
7c90d7022b
Require the license with HTML5
2016-02-08 17:56:35 +01:00
Mikael Nordfeldth
ef5ed10eb9
Log failed captcha entries
2016-02-08 17:51:21 +01:00
Mikael Nordfeldth
cd71188d3a
SimpleCaptcha plugin to stop basic bots
2016-02-08 17:47:09 +01:00
Mikael Nordfeldth
a30d34be7f
Returnto the previous page when deleting a notice.
2016-02-08 15:30:28 +01:00
Mikael Nordfeldth
d98784e059
Use functions instead of accessing properties in twitterUserArray
2016-02-08 12:21:58 +01:00
Mikael Nordfeldth
3dea259f52
Return intval from getID()
2016-02-08 12:21:46 +01:00
Mikael Nordfeldth
2938b3e960
Don't return true on requiresAuth if screen_name==='0'
2016-02-08 12:14:35 +01:00
Mikael Nordfeldth
13cf744fb3
Allow screennames that are === '0'
2016-02-08 11:40:46 +01:00
Mikael Nordfeldth
2686635f60
Keep the rel="tag" in HTML when purifying
2016-02-07 12:50:26 +01:00
Mikael Nordfeldth
1126f70786
Merge branch 'master' into mmn_fixes
2016-02-07 02:35:44 +01:00
Mikael Nordfeldth
7c7f2f890f
Hidespam by default
...
...why would something described as "Whether to hide silenced users from timelines"
be set to false by default? :)
2016-02-07 02:35:21 +01:00
Mikael Nordfeldth
d6664f5735
Hidespam by default
...
...why would something described as "Whether to hide silenced users from timelines"
be set to false by default? :)
2016-02-07 02:33:53 +01:00
Mikael Nordfeldth
58e852f7f7
Use the -y parameter for ffmpeg/avconv to be non-interactive
2016-02-07 01:59:21 +01:00
Mikael Nordfeldth
6bec22ea4e
Write to the tmp file in VideoThumbnails
2016-02-07 01:57:56 +01:00
Mikael Nordfeldth
25f623565a
Catch http exception in StoreRemoteMedia
2016-02-07 01:54:37 +01:00
Mikael Nordfeldth
098c8b1df4
NoHttpResponseException extends HTTP_Request2_ConnectionException
2016-02-07 01:52:20 +01:00
Mikael Nordfeldth
55546a5aab
Support ffmpeg and avconv depending on which you have
2016-02-07 01:02:59 +01:00
Chimo
7aca4e7463
CONFIGURE: Replace short urls with their target
...
Transparency and resilience against shorteners going away.
2016-02-04 15:20:37 +00:00
Mikael Nordfeldth
41e36e1f28
Unknown functionality of a script
...
Something added 6-8 years ago which we don't use anymore...
2016-02-04 12:16:36 +01:00
Mikael Nordfeldth
1f01356076
Fix issue #127 by catching exceptions
...
update-profile-data.php threw exceptions on http connection issues
2016-02-04 12:06:35 +01:00
Mikael Nordfeldth
60804d1902
ES3 compatibility layer not necessary (noone uses IE8 etc.)
...
All browsers with javascript support also support ES5 nowadays. Anyone
using older software should upgrade for other reasons, such as security.
2016-02-04 11:37:24 +01:00
Mikael Nordfeldth
d5ecbd05a1
Forgot a break in a switch when rendering attachments.
2016-02-03 19:32:51 +01:00
Mikael Nordfeldth
9960714896
Disallow zero-length magnet URIs
...
magnet: would match, but now we have a zero-length lookahead which
requires the following character to be a question mark: magnet:?
2016-02-03 15:26:19 +01:00
Mikael Nordfeldth
90045d66ea
HTMLPurifierSchemes plugin to allow geo and magnet URIs
2016-02-03 14:36:51 +01:00
Mikael Nordfeldth
2c83614170
HTMLPurifier caches were included accidentally
2016-02-03 14:35:26 +01:00
Mikael Nordfeldth
349dba8be0
Only allow our specified URI schemes
2016-02-03 14:31:16 +01:00
Mikael Nordfeldth
e903bd0bc3
Hacky support for geo URI detection
...
Won't work with common_purify yet because there is no geo uri scheme for it
2016-02-03 14:19:08 +01:00
Mikael Nordfeldth
b1ed1f48ea
Configurable linkify for bare IPv4/IPv6
2016-02-03 12:55:00 +01:00
Mikael Nordfeldth
25c15119bc
Backupaccount is always readonly
2016-02-03 01:15:35 +01:00
Mikael Nordfeldth
84930f89f9
Don't allow account backups by default.
2016-02-03 01:08:36 +01:00
Mikael Nordfeldth
19b743a9f5
Set time limit to increase time backupaccount can take
...
Wills till run out of memory probably, we should fix that.
2016-02-03 01:04:14 +01:00
Mikael Nordfeldth
9fcfb7cb1d
Proper error message on too much POST data
2016-02-03 01:03:58 +01:00
Mikael Nordfeldth
6a4aa34b0c
Don't process further in redirection if HEAD gives 400 Bad request
2016-02-03 00:34:49 +01:00
Mikael Nordfeldth
40cffb9463
File::isProtected is static
2016-02-03 00:22:18 +01:00
Mikael Nordfeldth
a2b914ce60
Get URL schemes by URL type
2016-02-03 00:18:37 +01:00
Mikael Nordfeldth
43abfe659b
Bump beta number to 4
...
We have better webfinger @mention@capability.example at least and
OpportunisticQM is somewhat refined.
2016-01-30 00:04:18 +01:00
Mikael Nordfeldth
367fc054dc
Merge branch 'master' into mmn_fixes
2016-01-30 00:03:25 +01:00
Mikael Nordfeldth
771f08b3c7
Merge branch 'master' of git.gnu.io:gnu/gnu-social
2016-01-30 00:02:56 +01:00
Mikael Nordfeldth
5167b1fa40
Don't trust local HTML either
...
If we reallyreally want to include <img> or <script> or whatever then we
have to do that after Notice::saveActivity sets ->rendered.
2016-01-30 00:02:03 +01:00
Mikael Nordfeldth
c6ae883ad2
Don't trust local HTML either
...
If we reallyreally want to include <img> or <script> or whatever then we
have to do that after Notice::saveActivity sets ->rendered.
2016-01-30 00:00:37 +01:00
Mikael Nordfeldth
a5c1b063fd
isPerson did not exist for Ostatus_profile
2016-01-29 16:15:06 +01:00
Mikael Nordfeldth
689e277c62
Allow @localuser@mysite.example to be looked up as a mention
2016-01-29 16:06:16 +01:00
Mikael Nordfeldth
36f099958c
Don't match @nickname on @nickname@server.com
2016-01-29 15:53:58 +01:00
Mikael Nordfeldth
cb40f72c7e
Use the profile URI when linking instead of URL
...
since we'll then get to /user/$id instead of /$nickname which is
good for future archives if someone changes their nickname...
2016-01-29 15:21:01 +01:00
hannes
f708a5b016
Never save our /attachment/{file_id} links as links in the file table, return the old file
2016-01-29 00:36:30 +00:00
hannes
efd2326a29
the last url in the redirection chain can actually also be a redirection (e.g. if it's one of our /attachment/{file_id} links)
2016-01-29 00:34:32 +00:00
Mikael Nordfeldth
5b11238010
Don't use system include path
...
Sometimes systems have _old_ DB_DataObject classes lying around that
get included by default, so we just try to avoid anything that we don't
ship ourselves.
<MMN-o> BeS: I'll commit a patch that will make this issue go away
<BeS> MMN-o: that would be awesome!
<MMN-o> but it might upset bashrc who's working on a Debian package (where you're _supposed_ to include from /usr/php etc. :P)
<MMN-o> but I'll leave a comment along with it
2016-01-28 20:31:46 +01:00
Mikael Nordfeldth
6b31feb70f
Strict Standards: Declaration of MysqlSchema::get()
...
should be compatible with Schema::get($conn = NULL)
2016-01-28 20:18:06 +01:00
Mikael Nordfeldth
a6898b033d
Fullname and location are now text, not varchar, and can be >191|255
2016-01-28 19:12:30 +01:00
Mikael Nordfeldth
c0851d59f5
migrateProfilePrefs added to scripts/upgrade.php
...
Makes it easier for plugin developers to change the topics set in Profile_prefs
2016-01-28 19:03:24 +01:00
Mikael Nordfeldth
fb7f572eed
Purify oembed html (again)
...
For a commit or two we didn't do this, because htmLawed failed to filter
out CDATA javascript properly, but now we use HTML Purifier which works.
2016-01-28 19:02:16 +01:00
Mikael Nordfeldth
7e6783bb8f
Replace htmLawed with HTMLPurifier
2016-01-28 19:01:13 +01:00
Mikael Nordfeldth
daea5647b6
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into mmn_fixes
2016-01-28 17:27:08 +01:00
mmn
9b3cbb373e
Merge branch 'oembed_fb_wp_branch' into 'nightly'
...
Oembed: Fix UTF-8 bug and better wp&fb data (updated!)
See merge request !97
2016-01-28 16:26:33 +00:00
Mikael Nordfeldth
efe23ed404
updateWithKeys now understands multi-column keys
...
and automatically identifies _which_ columns are the right ones,
so for example 'uri' primary keys don't need to be explicitly set
2016-01-28 16:42:59 +01:00
hannes
05439831e7
add comment that DOMDocument('1.0', 'UTF-8') does not work
2016-01-28 15:32:11 +00:00
hannes
06e325d61b
fixes two issues when the oembed thumbnail is blank
2016-01-28 15:19:29 +00:00
Mikael Nordfeldth
d94f9031ff
Changelog deleted in php-gettext
2016-01-28 14:43:01 +01:00
Mikael Nordfeldth
10f16e4f32
php-gettext extlib updated as req !88
...
Thanks postblue
2016-01-28 14:41:25 +01:00
Mikael Nordfeldth
c459bded53
Markdown library updated to 1.6.0, merge req !90
...
Thanks postblue
2016-01-28 14:37:14 +01:00
Mikael Nordfeldth
fb15dc5080
htmLawed updated (manually merging !89 )
...
Thanks postblue
2016-01-28 14:24:03 +01:00
mmn
bf38fb7bef
Merge branch 'upstream-changes/google-analytics-removal' into 'master'
...
Removed plugin Google-Analytics
... as this is free/libre and decentralized software and should not promote centralized proprietary software. Please see the included Piwik plugin for a more decentralized alternative!
See merge request !94
2016-01-28 12:55:10 +00:00
Mikael Nordfeldth
7c80c9a1f9
Meh, let's just remove FirePHP, I don't think anyone uses it
2016-01-28 13:48:44 +01:00
mmn
dfc11f99ad
Merge branch 'update-extlib-firephp' into 'nightly'
...
Update FirefPHP Core to v0.4.0 released on 23 Apr 2013
See merge request !92
2016-01-28 12:41:34 +00:00
Mikael Nordfeldth
bb0cb9b3f6
Manual merge of !87 Update LDAP2 extlib to 2.2.0 (stable) released on 2015-10-30
...
Thanks postblue
2016-01-28 13:35:23 +01:00
Mikael Nordfeldth
d73c264e25
Haha, forgot that the $content content must also be there!
2016-01-27 23:04:19 +01:00
Mikael Nordfeldth
34093388a7
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into mmn_fixes
2016-01-27 22:43:37 +01:00
Mikael Nordfeldth
a47563cf3d
Don't add space if there's no string in new notice content
2016-01-27 22:41:53 +01:00
Mikael Nordfeldth
03d2b680f8
Allow empty new-notice content via web if there's an upload
2016-01-27 22:39:43 +01:00
mmn
52778e1882
Merge branch 'json_encode_fail_branch' into 'nightly'
...
output error if json_encode fails
See merge request !86
2016-01-26 21:16:24 +00:00
mmn
42545c6625
Merge branch 'mention_branch' into 'nightly'
...
correct mentions if parent mentions multiple users with same nickname (don't use first one for all)
See merge request !82
2016-01-26 21:15:25 +00:00
Mikael Nordfeldth
e69715005d
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into mmn_fixes
2016-01-26 22:10:23 +01:00
mmn
c01982c917
Merge branch 'oembed_thumbnail_branch' into 'nightly'
...
add a thumbnail to oembed response
just something i added to quitim
See merge request !85
2016-01-26 21:09:07 +00:00
hannes
aa76e5863f
don't mess upp charsets in oembed/og! check for utf-8 in http header and meta tags, and add prolog when loading html with DOMDocument()
2016-01-26 13:37:52 +00:00
hannes
b8d1e1f4a6
silence errors on these xpath queries
2016-01-26 11:28:24 +00:00
hannes
884aeb4d2e
common_purify() doesn't remove wordpress' and facebook's javascript properly, maybe better to keep the data intact, and do strip_tags or something similar when using the data
2016-01-26 01:10:15 +00:00
hannes
473f893d04
detab
2016-01-26 01:07:44 +00:00
hannes
76c8139054
not pretty, but gives us better oembed data for wordpress and facebook
2016-01-26 01:05:53 +00:00
Mikael Nordfeldth
a48055a3cc
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into mmn_fixes
2016-01-25 20:22:16 +01:00
mmn
c0b0f8e2f9
Merge branch 'file_redirection_cleanup_branch' into 'nightly'
...
Proper URL redirection fix
This greatly reduces the number of times GNU social looks up the same URL with File_redirection::where().
Someone must have mixed up the exlib's internal setting "follow_redirects" with our own.
This also makes away with the weird backwards recursive handling of protected URLs in File_redirection::lookupWhere(), by saving the chain of redirects the first time HTTPClient:send() looks them up.
See merge request !95
2016-01-25 19:21:52 +00:00
hannes
e447964639
remove my ugly debug info
2016-01-25 19:10:35 +00:00
hannes
b1b6a0a69c
config['follow_redirects'] is the extlib's config! if max_redirs is set we want to do our own redirection following in this function
2016-01-25 19:03:26 +00:00
hannes
a888294135
add our own protected urls
2016-01-25 19:00:46 +00:00
hannes
ca0c792ed3
File and File_redirection records are saved in File_redirection::where() now
2016-01-25 19:00:05 +00:00
hannes
48e1a2431b
save File and File_redirection records in File_redirection::where(), because then we will have to run where() over and over again
2016-01-25 18:55:48 +00:00
Mikael Nordfeldth
b15434375c
Show plain text files on attachment page.
2016-01-25 16:54:40 +01:00
Roland Haeder
9614aba0e1
Removed plugin Google-Analytics as this is free/libre and decentralized
...
software and should not promote centralized proprietary software. Please see
the included Piwik plugin for a more decentralized alternative!
Signed-off-by: Roland Haeder <roland@mxchange.org >
2016-01-25 13:19:43 +01:00
postblue
fef52d7b51
Update FirefPHP Core to v0.4.0 released on 23 Apr 2013
2016-01-24 21:11:38 +01:00
Mikael Nordfeldth
a9d18a077e
Harmonize, clarify, categorize URL schemes
...
Regular expression + avoid-redirection list now match each other.
2016-01-24 12:47:31 +01:00
Mikael Nordfeldth
1cec627d72
Allow bitcoin scheme to URLs
2016-01-24 12:44:28 +01:00
hannes
4e50717e12
output error if json_encode fails
2016-01-23 15:01:27 +00:00
Mikael Nordfeldth
ef005987a1
Did the OpportunisticQM fixes in the wrong order
2016-01-22 12:26:53 +01:00
Mikael Nordfeldth
1121b38eb1
use connect_timeout value for execution margin
2016-01-22 12:21:06 +01:00
Mikael Nordfeldth
89dd44bf3e
default connect_timeout to 5 instead of extlib 10
2016-01-22 12:20:03 +01:00
Mikael Nordfeldth
81f9a59f25
use connect_timeout value for execution margin
2016-01-22 12:19:17 +01:00
hannes
d0e2f8745d
add a thumbnail to oembed response
2016-01-21 18:48:30 +00:00
Mikael Nordfeldth
3f9c1c142a
Removing unnecessary debug messages etc.
2016-01-21 02:49:34 +01:00
Mikael Nordfeldth
45446f17ad
Only set selectVerbs if it's not set in class var
2016-01-21 02:37:38 +01:00
Mikael Nordfeldth
be1759f112
i18n
2016-01-21 02:37:07 +01:00
Mikael Nordfeldth
d3a4a2225f
We want the profile stream to be as raw as possible!
2016-01-21 02:33:43 +01:00
Mikael Nordfeldth
81bf0fd261
Various last fixes to RSVP I think
2016-01-21 02:20:57 +01:00
Mikael Nordfeldth
f74d2d555c
Working on some RSVP code stuff
2016-01-21 02:10:34 +01:00
Akio Nishimura
d13454fb84
Now we can delete a group logo.
2016-01-21 08:10:35 +09:00
Mikael Nordfeldth
5999171c11
Throw NoObjectTypeException on Notice->getObjectType if no string
2016-01-20 21:37:14 +01:00
Mikael Nordfeldth
45b523bada
Add xcal namespaces to location and url in event
...
Also, for fun, add stuff for RSS event module, see:
http://web.resource.org/rss/1.0/modules/event/
2016-01-20 21:07:55 +01:00
Mikael Nordfeldth
21cc737f5c
Cancelling RSVPs now seems to work.
2016-01-20 16:10:10 +01:00
Mikael Nordfeldth
9accd953e4
Merge branch 'master' into mmn_fixes
2016-01-20 15:33:18 +01:00
Mikael Nordfeldth
64e74d527f
Handle exceptions when salmon slapping
...
Make it so notifyDeferred actually _always_ throws exceptions and handle
them in the places it is called.
2016-01-20 15:32:39 +01:00
Mikael Nordfeldth
c393bc9563
In very specific circumstances we can bulkDistribute 0 notices
...
Seems to be what caused an infinite loop on quitter.es, or I guess so anyway.
2016-01-20 15:32:29 +01:00
Mikael Nordfeldth
912d65c767
bulkDistribute won't add empty lists to database
2016-01-20 15:32:24 +01:00
Mikael Nordfeldth
fa8e02b832
Handle exceptions when salmon slapping
...
Make it so notifyDeferred actually _always_ throws exceptions and handle
them in the places it is called.
2016-01-20 14:56:24 +01:00
hannes
de047f9727
correct mentions if parent mention multiple users with same nickname (don't use first one for all)
2016-01-19 13:41:25 +00:00
Mikael Nordfeldth
80dc2788dd
Started fiddling with CancelRSVP but more must be done
...
Remember to make event_uri be the selector for CancelRSVPForm and
preferrably even merge it into RSVPForm!
2016-01-19 01:41:06 +01:00
Mikael Nordfeldth
477d71c0bf
RSVP stuff, mostly forms.
...
Now fix CancelRSVP stuff so it gets by event_uri and can cancel existing RSVP.
2016-01-19 01:33:09 +01:00
Mikael Nordfeldth
84dda697d6
RSVPs seem to be created now, just gotta fix CancelrsvpAction
2016-01-19 01:10:06 +01:00
Mikael Nordfeldth
73992a1ed8
Use "newer" terminology and throw exceptions
2016-01-19 00:21:16 +01:00
Mikael Nordfeldth
9eea255c79
Save with options so we get source=web
2016-01-19 00:08:31 +01:00
Mikael Nordfeldth
358684a5ed
end_str, not start_str
2016-01-19 00:01:30 +01:00
Mikael Nordfeldth
385705c65b
Events get rendered.
2016-01-18 23:58:32 +01:00
Mikael Nordfeldth
15d12b209d
Don't include delete verbs in profile notice stream.
2016-01-18 22:04:42 +01:00
Mikael Nordfeldth
7715ea993b
getVerb function in Notice class
2016-01-18 22:02:05 +01:00
Mikael Nordfeldth
f768de4b46
default connect_timeout to 5 instead of extlib 10
2016-01-18 22:01:45 +01:00
Mikael Nordfeldth
cae344b67b
Events are now saved but not displayed properly again
2016-01-18 20:57:44 +01:00
Mikael Nordfeldth
6c46a93a81
Minor improvements on Notice::saveActivity
2016-01-18 19:29:45 +01:00
Mikael Nordfeldth
486a02d60d
First steps on making NeweventAction a FormAction
...
Also saving new Happening objects via Notice::saveActivity
2016-01-18 18:42:42 +01:00
Mikael Nordfeldth
11b925c4ca
Use a function to getCreated()
2016-01-18 17:03:37 +01:00
Mikael Nordfeldth
c1655c2c0f
Merge branch 'master' into mmn_fixes
2016-01-17 00:41:43 +01:00
Mikael Nordfeldth
b0416ae592
Initial user doesn't need as strict checking on email
2016-01-17 00:41:03 +01:00
Mikael Nordfeldth
78346af572
Merge branch 'master' of git.gnu.io:gnu/gnu-social
2016-01-17 00:40:14 +01:00
Mikael Nordfeldth
bdc38a7204
Initial user doesn't need as strict checking on email
2016-01-17 00:39:49 +01:00
Mikael Nordfeldth
6dc0477c00
Let the remote side know the Salmon was accepted (sorta)
2016-01-16 22:39:59 +01:00
Mikael Nordfeldth
deda83fdef
Distinguish notice saving errors from others for Salmon
2016-01-16 22:39:04 +01:00
Mikael Nordfeldth
4678546d33
We want exceptions to be noticable in activityhandlerplugin
2016-01-16 21:19:34 +01:00
Mikael Nordfeldth
a85a08ff35
Add a check in Notice->asActivityObject that we're actually returning such a thing!
2016-01-16 21:13:26 +01:00
Mikael Nordfeldth
0797ee0871
EmptyIdException doesn't carry ->obj
2016-01-16 21:12:53 +01:00
Mikael Nordfeldth
3019f8f23f
dbqueuemanager logic
2016-01-16 21:05:34 +01:00
Mikael Nordfeldth
fdfa71a033
Extremely verbose debugging is annoying
2016-01-16 18:04:04 +01:00
Mikael Nordfeldth
c559b8ce2a
bulkDistribute won't add empty lists to database
2016-01-16 17:34:27 +01:00
Mikael Nordfeldth
f53ebdeadb
Start handling salmon entries directly with Notice::saveActivity
...
More to come...
2016-01-16 17:25:29 +01:00
Mikael Nordfeldth
1f76c1e4a9
Initial user doesn't need as strict checking on email
2016-01-16 17:23:50 +01:00
Mikael Nordfeldth
2b67b53112
In very specific circumstances we can bulkDistribute 0 notices
...
Seems to be what caused an infinite loop on quitter.es, or I guess so anyway.
2016-01-16 17:18:14 +01:00
mmn
44c10bb2aa
Merge branch 'oembed_branch' into 'nightly'
...
purify oembed html and don't allow cdata
hopefully we never need stuff in cdata
reason for this is that this link serves javascript in its oembed data: https://www.maketecheasier.com/switch-windows-10-to-linux/
see:
https://www.maketecheasier.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwww.maketecheasier.com%2Fswitch-windows-10-to-linux%2F
i don't feel we want that in our database.
See merge request !79
2016-01-15 13:11:35 +00:00
Mikael Nordfeldth
a1530b0e68
Removing superflous debug stuff
2016-01-14 22:12:36 +01:00
Mikael Nordfeldth
8df38df5cb
Get uploaded media_ids via File::getByID()
...
Filters out failed ones...
2016-01-14 22:05:03 +01:00
Mikael Nordfeldth
16088d9439
ErrorAction and InfoAction fixes, are now ManagedAction
2016-01-14 21:28:47 +01:00
Mikael Nordfeldth
bc0a903bd4
ErrorAction to autodiscoverable file.
2016-01-14 21:21:34 +01:00
Mikael Nordfeldth
818fb05cfe
role examples in userrole.php
2016-01-14 20:34:12 +01:00
Mikael Nordfeldth
e5019c3858
Accept media_ids parameter from Twitter API v1.1 clients
...
They upload the media first and then provide media IDs in a comma
separated parameter (but we just split it to all whole integers).
2016-01-14 20:24:01 +01:00
Mikael Nordfeldth
b570f0d3cb
Media files are accepted and uploaded via Twitter API now
2016-01-14 19:15:02 +01:00
Mikael Nordfeldth
2af9de4f23
Minor fixes in Linkback plugin
2016-01-14 19:14:24 +01:00
Mikael Nordfeldth
b530d385bc
Exception object was not supplied there
2016-01-14 18:51:46 +01:00
Mikael Nordfeldth
0caf0612d0
Make Twitter Media upload API v1.1 reach us
...
Now we just have to accept the 'media' or 'media_data' (base64 encoded)
POST arguments instead of $_FILES uploads.
2016-01-14 18:29:21 +01:00
Mikael Nordfeldth
6e49281adb
Use the Action class itself as error handler
2016-01-14 18:21:11 +01:00
Mikael Nordfeldth
2f1bfe126b
Debug message formatting gone wrong
2016-01-14 13:52:11 +01:00
Mikael Nordfeldth
c173c4faa5
Actually throw NoQueueHandlerException too.
2016-01-14 13:48:33 +01:00
Mikael Nordfeldth
59e75ef966
Incorrect use of getByHashKey in HubSub
2016-01-14 13:15:31 +01:00
Mikael Nordfeldth
f092026541
Documentation fix from master
2016-01-14 13:11:27 +01:00
Mikael Nordfeldth
df00a88cb4
Forgot to add NoRouteMapException to 6834f355f2
2016-01-14 13:07:00 +01:00
Mikael Nordfeldth
bacd49a6a8
Don't try to replace http with https if https already exists
2016-01-14 13:06:37 +01:00
mmn
0781c2a7b9
Merge branch 'fix_readme' into 'master'
...
update readme for OpportunisticQM: array need to contain key/value pairs
according to the doc-block of addPlugin() the array should contain key/value pairs, see https://git.gnu.io/gnu/gnu-social/blob/master/lib/gnusocial.php#L46
I updated the readme for the OpportunisticQM plugin to reflect this.
See merge request !81
2016-01-14 12:03:11 +00:00
Björn Schießle
b7c849b5b0
array need to contain key/value pairs
2016-01-14 12:39:39 +01:00
Mikael Nordfeldth
83cb1dfa68
Salmon debugging
2016-01-14 03:48:41 +01:00
Mikael Nordfeldth
6834f355f2
Making ClientExceptions turn into ClientErrorAction
...
Got some 404s which were presented as 500
2016-01-14 02:47:28 +01:00
Mikael Nordfeldth
99261e0781
Don't LOG_ERR missing paths (misspelling clients aren't errors)
2016-01-14 02:22:47 +01:00
Mikael Nordfeldth
53339ff463
Fake oEmbed version in OpenGraph return object
2016-01-14 02:09:12 +01:00
Mikael Nordfeldth
331abf173b
Forgot semicolon
2016-01-14 02:05:33 +01:00
Mikael Nordfeldth
f699ffeb8a
Exception handling in queue handler logic
2016-01-14 02:04:15 +01:00
Mikael Nordfeldth
cf7d2f4d0f
Salmon queue handler getByID for exception throwing
2016-01-14 01:51:00 +01:00
Mikael Nordfeldth
0ddaa6ff75
Handle exceptions in QueueHandler classes
2016-01-14 01:47:13 +01:00
Mikael Nordfeldth
0482b7de8e
Debugging by indexing callback column in HubSub
2016-01-13 22:57:42 +01:00
Mikael Nordfeldth
24d9d76644
OpenGraph image/thumbnail width and height
2016-01-13 22:07:39 +01:00
Mikael Nordfeldth
1e5770bbcf
$this->notice is never unset after prepare
2016-01-13 21:34:15 +01:00
Mikael Nordfeldth
adba38ce20
Deleted_notice is pluginified, don't call directly from core
2016-01-13 21:29:23 +01:00
Mikael Nordfeldth
45dd343126
Eventify Notice getAsTimestamp (for Deleted_notice)
2016-01-13 21:01:47 +01:00
Mikael Nordfeldth
29b45bb87a
Unnecessary call to User::getKV
2016-01-13 20:08:17 +01:00
Mikael Nordfeldth
8ab98b72ac
getLeaseRemaining for FeedSub too
2016-01-13 20:01:00 +01:00
Mikael Nordfeldth
377947c57f
s/getLease/getLeaseTime/ just to be a bit more clear
2016-01-13 19:55:17 +01:00
Mikael Nordfeldth
1d26fedf12
Don't store lease seconds, just sub start and end
...
The seconds can always be calculated from the dates!
2016-01-13 19:45:20 +01:00
Mikael Nordfeldth
494746e665
Minor PuSH comment and debug stuff
2016-01-13 19:25:39 +01:00
Mikael Nordfeldth
a5fd4fde25
Request a month long sub lease by default
2016-01-13 19:24:07 +01:00
Mikael Nordfeldth
b38a789005
HubSub didn't save sub start and end datetimes
2016-01-13 19:23:34 +01:00
Mikael Nordfeldth
818aaa0578
We didn't get profiles from the new-style attention system
2016-01-13 18:35:25 +01:00
Mikael Nordfeldth
961725205d
Try if Profile is a Person (in effect ActivityObject::PERSON)
2016-01-13 18:34:48 +01:00
hannes
ee305891c4
purify oembed html
2016-01-13 16:03:38 +00:00
hannes
3e7e3de554
don't allow cdata elements in purified html
2016-01-13 16:01:27 +00:00
Mikael Nordfeldth
5c262a788d
Unused, unnecessary and intrusive cookie/storage removed!
2016-01-13 15:22:28 +01:00
Mikael Nordfeldth
3720e37f06
property attribute could be null in meta tags of course
2016-01-13 14:24:00 +01:00
Mikael Nordfeldth
99da1ebe41
Catch NoHttpResponseException when using HTTPClient
2016-01-13 14:17:49 +01:00
Mikael Nordfeldth
3ed632decf
NoHttpResponseException needed instead of HTTP_Request2_Exception
...
HTTP_Request2_Exception assumed an HTTP response status code/line
2016-01-13 14:08:48 +01:00
Mikael Nordfeldth
e75472f460
Use the upstream function to get effectiveUrl
2016-01-13 14:00:05 +01:00
Akio Nishimura
eceafb84de
lib/language.php: rewrited jp as ja.
2016-01-13 13:23:06 +01:00
Mikael Nordfeldth
14bd6daab1
Aspect ratio on elements in inline-attachment list
2016-01-12 23:12:41 +01:00
Mikael Nordfeldth
e49e113140
Ugly hack to show thumbnails of otherwise unrepresentable attachments
...
such as text/html, where the thumbnail has been retrieved via oEmbed/OpenGraph
2016-01-12 15:38:59 +01:00
Mikael Nordfeldth
3658774429
Super-basic OpenGraph image preview support, "works for me"
2016-01-12 15:29:03 +01:00
Mikael Nordfeldth
f4feef477b
Don't follow redirects on PuSH POST.
2016-01-12 14:32:28 +01:00
Mikael Nordfeldth
b696fb4eb1
Mimetypes like image/svg+xml were misinterpreted when guessing
...
We don't really need the mb_ in mb_strtolower but what the heck, why not. I love Unicode.
2016-01-12 13:46:25 +01:00
Mikael Nordfeldth
8c28e54ccc
same as previous, but for mime_to_ext
2016-01-12 13:14:17 +01:00
Mikael Nordfeldth
dbe5d72e4c
If all file extensions are supported we have no list of comparisons
2016-01-12 13:08:54 +01:00
mmn
d07640caba
Merge branch 'common_purify_branch' into 'nightly'
...
EndCommonPurify event
Because we have problems with htmLawed on quitter.se, we want to check its output and maybe use another HTML purifier...
See merge request !78
2016-01-11 21:14:41 +00:00
mmn
e4a1dff98d
Merge branch 'apiaccountregister_event_branch' into 'nightly'
...
APIStartRegistrationTry event
See merge request !77
2016-01-11 21:08:09 +00:00
mmn
e94017a552
Merge branch 'hidden-h2s' into 'nightly'
...
Show H2s in notice content
With notices coming from other sources (e.g. Diaspora) and rich-text plugins
such as Textile/Markdown/TinyMCE, it's possible notices include H2 we want
to display.
See merge request !76
2016-01-11 21:01:26 +00:00
hannes
a1b509bb0b
forgot we need access to $html too
2016-01-11 20:58:34 +00:00
hannes
8d331b0f35
EndCommonPurify event
2016-01-11 20:54:19 +00:00
hannes
543a7e421e
APIStartRegistrationTry event
2016-01-11 20:04:31 +00:00
Mikael Nordfeldth
c826fe0af4
$target was klantigtly copied from another debug message
2016-01-11 20:10:38 +01:00
Mikael Nordfeldth
bd6efa0e45
Update PuSH callback URL if remote side switched to HTTPS
...
See the comment in the source on why we're not following Location headers...
2016-01-11 19:55:02 +01:00
Mikael Nordfeldth
f24cdf4a80
Much more logging in PushHubAction (OStatus)
2016-01-11 19:54:05 +01:00
Mikael Nordfeldth
1a46d86ca6
lib/util.php quick function to do var_export($var,true)
...
Immensely useful when debugging and we want to put quotes around strings,
potentially stopping any "evil logging attacks" (where input data masks
as logging data).
2016-01-11 19:52:54 +01:00
Mikael Nordfeldth
93c614c184
Do updateWithKeys properly if someone would like to update PRI
2016-01-11 19:52:33 +01:00
Mikael Nordfeldth
c1f22f106b
Might as well put a $limit on preg_replace here
...
Since there will (should) never be more than one ^http in that string anyway.
2016-01-11 18:27:26 +01:00
Mikael Nordfeldth
5b2b969a77
Tag notice streams should only show post verbs
2016-01-11 15:15:23 +01:00
Mikael Nordfeldth
8acf930c45
OpportunisticQM matches against _system_ max_execution_time
...
Probably never runs if max_execution_time is 0. I'll handle that later.
2016-01-11 13:35:29 +01:00
Mikael Nordfeldth
b13f8df79b
HTTPClient would return null instead of exception
...
This caused $response->isOK() tests to call a function on a non-existing object, causing all hell to break loose.
2016-01-11 02:36:59 +01:00
Chimo
63fff7ef47
Show H2s in notice content
...
With notices coming from other sources (e.g. Diaspora) and rich-text plugins
such as Textile/Markdown/TinyMCE, it's possible notices include H2 we want
to display.
2016-01-10 15:37:30 +00:00
Mikael Nordfeldth
87ae5292b8
NSTALL/UPGRADE documentation edits
...
No more background folder for example. Also comments on chmod a+w
2016-01-10 10:44:16 +01:00
Mikael Nordfeldth
e498bc6b7b
Control OpportunisticQM verbosity
2016-01-10 00:51:25 +01:00
Mikael Nordfeldth
7fbf72f9c1
Minor changes to OpportunisticQM for debugging
2016-01-10 00:48:04 +01:00
Mikael Nordfeldth
42dff2742a
Put salmon slaps in queues before pushing user Atom feed
2016-01-10 00:29:32 +01:00
Mikael Nordfeldth
67801a5566
Not only local groups should be added to group inbox notificiation table
2016-01-09 15:14:38 +01:00
Mikael Nordfeldth
5ef10a14ef
Get group attentions too for outbound notices
2016-01-09 15:06:44 +01:00
Mikael Nordfeldth
c3c5a9974d
Do proper fromUri lookup on groups too
2016-01-09 14:36:47 +01:00
Mikael Nordfeldth
55aa68b941
CancelGroupForm gets same typing as Join and Leave
2016-01-09 14:13:19 +01:00
Mikael Nordfeldth
fbec7c4e75
Issue #121 - use correct Group ID and strict User_group typing
2016-01-09 14:06:50 +01:00
Mikael Nordfeldth
d1e609a886
Local user profile getUrl gives dynamically generated URL
2016-01-09 13:47:38 +01:00
Mikael Nordfeldth
f143925931
Actually return the group home URL
2016-01-09 13:33:30 +01:00
Mikael Nordfeldth
d13483ca20
Wups, $poster could be undefined
2016-01-09 13:15:09 +01:00
Mikael Nordfeldth
33194b3cff
Attention goes to the parent notice author too
2016-01-08 02:58:31 +01:00
Mikael Nordfeldth
28cd5640c1
Save attentions to Reply table for backwards compatibility
...
local users only of course
2016-01-08 01:59:16 +01:00
Mikael Nordfeldth
0463d96392
Add more info in logging call
...
There shouldn't be *HandleSalmonTarget, only verification of actor and
then Notice::saveActivity()!
2016-01-08 01:52:10 +01:00
Mikael Nordfeldth
4e0ed61f7c
OStatus queue handler uses Notice->getAttentionProfiles()
...
and lots more debugging for LOG_DEBUG
2016-01-08 01:31:47 +01:00
Mikael Nordfeldth
e6f2676c5c
Default to not include delete verbs in notice streams
2016-01-07 23:33:47 +01:00
Mikael Nordfeldth
c48871cf1b
Notice from web now saves context->attention too! ;)
2016-01-07 23:24:15 +01:00
Mikael Nordfeldth
6255e1dca3
saveAttentions, trying to move away from saveReply
2016-01-07 23:23:51 +01:00
Mikael Nordfeldth
801ca3531b
common_find_attentions to populate activities from content text
2016-01-07 23:23:37 +01:00
Mikael Nordfeldth
3eebf2a353
Don't store the notice object for distrib queue handler, just id
2016-01-07 20:24:59 +01:00
Mikael Nordfeldth
cd2695190d
BeforePluginCheckSchema event for checkschema.php
2016-01-07 18:45:36 +01:00
Mikael Nordfeldth
1f02dc639e
shortenLinks _after_ media upload to be consistent with api
2016-01-07 18:14:45 +01:00
Mikael Nordfeldth
be58fd64f5
Use index for File url (urlhash)
2016-01-07 18:13:10 +01:00
Mikael Nordfeldth
6505504411
shortenLinks with a capital L
2016-01-07 18:12:29 +01:00
Mikael Nordfeldth
d4be5349b3
think I have managed to show oEmbed images better now
2016-01-07 17:35:37 +01:00
Mikael Nordfeldth
9e5c71e701
Fixed group representation in Directory plugin, also some ->raw calls
2016-01-07 12:58:14 +01:00
Mikael Nordfeldth
c02f23e63f
Return Profile objects from getGroups in GroupdirectoryAction
2016-01-07 12:35:52 +01:00
Mikael Nordfeldth
5d4b1d0b88
Appropriate exception message in GroupNoProfileException
2016-01-07 12:14:48 +01:00
Mikael Nordfeldth
839ae571d8
Define User_group::$profile_id among class variables
2016-01-07 12:12:27 +01:00
Mikael Nordfeldth
e7308b0ecb
Max execution time margin for OpportunisticQM
...
I guess it could continue a bit too long in case it got a really long
(failing, timeouting) HTTP request just before max_execution_time hit.
2016-01-07 11:58:09 +01:00
Mikael Nordfeldth
94392ab00c
Index the verb column since we do COUNT(*) based on it
2016-01-07 11:39:46 +01:00
Mikael Nordfeldth
05d3622939
Conversation entries where id==0 would screw up the "re-auto-increment" sequencing
2016-01-06 22:26:17 +01:00
Mikael Nordfeldth
6924bb1d29
Gah and a 302 in the non-exception-handling redirect too
2016-01-06 20:09:59 +01:00
Mikael Nordfeldth
a9b5519293
Attachment thumbnail redirect is a 302 redirect
...
It SHOULD be cached but it might no longer be valid if we empty cache or something.
2016-01-06 20:07:40 +01:00
Mikael Nordfeldth
4d179c6b0c
Our URLs are permanent redirects, mind you!
2016-01-06 20:06:14 +01:00
Mikael Nordfeldth
47c7e1b875
Breaking class definitions out into separate files and fixing typing
2016-01-06 19:46:56 +01:00
Mikael Nordfeldth
f1c4c64cd9
Don't update stored URLs just because we have a filename
...
This would overwrite remote URLs with local verisons which removes source href...
The reason one might have filenames for remote URLs is that StoreRemoteMedia plugin
fetches them and uses the filename field.
2016-01-06 19:24:03 +01:00
Mikael Nordfeldth
346e34e543
Return dynamically generated URLs for thumbnails for all locally stored entries
2016-01-06 19:06:29 +01:00
Mikael Nordfeldth
4352d1739d
Always generate notice URLs on the fly for local notices
...
Related to issue #118
2016-01-06 16:24:33 +01:00
Mikael Nordfeldth
1a1e44cdfd
Issue #118 wanted better TOR support, now Avatar URLs are not stored
...
There was no reason to store the generated Avatar URLs because it's so
cheap to generate them on the fly.
2016-01-06 16:14:26 +01:00
Mikael Nordfeldth
7b2036a4b5
Note in the debug log if we render the HTML of a message
2016-01-06 15:37:30 +01:00
Mikael Nordfeldth
b596391fcd
Avoid having to check for notices without rendered copies in upgrade.php
...
Always call the Notice->getRendered() function to get a rendered copy.
We could perhaps put some sanitation there too in the future
2016-01-06 15:32:27 +01:00
Mikael Nordfeldth
d6ac002639
Get conversation ID from child too in scripts/upgrade.php
2016-01-06 14:57:30 +01:00
Mikael Nordfeldth
4a8e936e19
Somewhat more meaningful error message
2016-01-06 14:10:37 +01:00
Mikael Nordfeldth
0fd2ad649e
Conversation IDs (again) no longer based on Notice ID
2016-01-06 13:58:46 +01:00
Mikael Nordfeldth
4b22b0c42a
More listitems and lists into separate files + stronger typing
2016-01-06 01:36:46 +01:00
Mikael Nordfeldth
6d9f390ba8
Separating classes into files and stronger typing
2016-01-06 01:30:12 +01:00
Mikael Nordfeldth
da2f179ae9
Typing to Profile
2016-01-06 01:25:00 +01:00
Mikael Nordfeldth
e577e883f4
Subscriber lists to separate files and also Profile typing
2016-01-06 00:57:31 +01:00
Mikael Nordfeldth
59d3bbe037
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into mmn_fixes
2016-01-06 00:53:20 +01:00
mmn
d45457e4a9
Merge branch 'nightly' into 'nightly'
...
only count post-notices (i.e. don't include activity-notices in statuses_count in the API)
See merge request !73
2016-01-05 23:53:08 +00:00
Mikael Nordfeldth
1946197a1c
Merge request #10 by aroque but in a slightly different version
2016-01-06 00:48:03 +01:00
hannes
32549cfd8c
$notices->verb = ActivityVerb::POST;
2016-01-05 23:29:48 +00:00
mmn
2c5460eb0e
Merge branch 'openid-plugin' into 'nightly'
...
OpenID plugin: 'openid_only' should be 'openidonly'
To match everywhere else.
See merge request !72
2016-01-05 23:28:28 +00:00
Mikael Nordfeldth
31c8416a8f
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into mmn_fixes
2016-01-06 00:24:41 +01:00
mmn
956e053da6
Merge branch 'lookup_url_fix' into 'nightly'
...
makes url lookup work and adds full url to href for shortened links
See merge request !74
2016-01-05 23:24:16 +00:00
Mikael Nordfeldth
792b62874e
Require Profile for Profile->getLists
2016-01-06 00:18:10 +01:00
hannes
0b4b0de412
longurl in href
2016-01-05 23:14:51 +00:00
hannes
1c25cffbd8
add $redir->redir_url to use in common_linkify()
2016-01-05 23:07:24 +00:00
Mikael Nordfeldth
3d66d960a1
Require Profile for Profile->getOtherTags
2016-01-06 00:07:15 +01:00
hannes
8b78e01d4c
$longurl->url is just the same $canon we fed to File_redirection::where()
2016-01-05 23:06:02 +00:00
hannes
64f2f3d976
effectiveUrl seems to contain the url we want
2016-01-05 22:44:06 +00:00
Mikael Nordfeldth
8ad6b8809a
Don't abort on too long notices in Notice::saveActivity
2016-01-05 17:31:09 +01:00
hannes
e10691abea
only count post-notices (i.e. don't include activity-notices in statuses_count in the API)
2016-01-05 14:19:33 +00:00
Mikael Nordfeldth
9a75778b29
If there's no Happening, we can't use the RSVP.
2016-01-05 15:00:34 +01:00
Mikael Nordfeldth
3471213d1c
processFeed would abort on certain errors where findLocalObject failed
2016-01-05 15:00:07 +01:00
Mikael Nordfeldth
ab93bb009c
XSS vulnerability when remote-subscribing
...
->raw was used on non-filtered strings for some reasons, changed
to ->text.
2016-01-05 12:15:50 +01:00
Mikael Nordfeldth
df8c14d66a
ProfileMiniList->newListItem changed to match ProfileList->newListItem
2016-01-05 00:09:47 +01:00
Mikael Nordfeldth
701f6ff608
Allow Profile->getCurrentNotice to send scoped profile info
...
not that we're using it anywhere (yet anyway).
2016-01-04 21:42:24 +01:00
Mikael Nordfeldth
6a16939830
Profile->getCurrentNotice handles PrivateStreamException
2016-01-04 21:38:41 +01:00
Chimo
bf0df016e5
OpenID plugin: 'openid_only' should be 'openidonly'
...
To match everywhere else.
2016-01-04 10:36:05 -05:00
Mikael Nordfeldth
de7e8c59e8
Version bump since we've fixed a lot of bugs
2016-01-04 02:19:37 +01:00
Mikael Nordfeldth
fb537fb7f4
We would end up with a Managed_DataObject if now match was found
...
meaning we'd return for example a Notice with empty id (translated into 0)
and thus Faves coming in from remote instances where the fave'd notice was
not found would result in faving the first Notice in a table-wide search,
i.e. often the first post on the instance.
Whoopie!
2016-01-04 02:04:18 +01:00
Mikael Nordfeldth
065e23b1c4
Code cleanup in lib/activityutils.php
2016-01-04 01:58:45 +01:00
Mikael Nordfeldth
00ace6c2df
More explicit catch
2016-01-04 01:53:33 +01:00
Mikael Nordfeldth
f7a1c8a94c
The $options array isn't used here
2016-01-04 01:48:54 +01:00
Mikael Nordfeldth
34b25e6afc
Use EmptyIdException in Fave deletion try-catch
2016-01-03 22:57:28 +01:00
Mikael Nordfeldth
b4b57bba54
EmptyIdException to make sure we get the right in catch
2016-01-03 22:56:48 +01:00
Mikael Nordfeldth
bda30a92bc
Fave deletion would fail in some cases with missing profiles or notices
2016-01-03 22:35:49 +01:00
Mikael Nordfeldth
7266a968f9
Err, forgot semicolon.
2016-01-03 22:22:58 +01:00
Mikael Nordfeldth
f467b89f40
Try-catch on profile deletion unsubscribe actions
2016-01-03 22:21:03 +01:00
Mikael Nordfeldth
3bddf01350
Somewhat better layout for approving/rejecting subrequests
2016-01-03 20:42:21 +01:00
Mikael Nordfeldth
c19964094b
Pending subscription requests now work as they should
...
A slight layout issue with the buttons still persists
2016-01-03 20:27:53 +01:00
Mikael Nordfeldth
b374e5f08b
If a user has a private stream, assume a moderated subscription policy
2016-01-03 19:33:26 +01:00
Mikael Nordfeldth
df0f9547b5
Handle private streams better (failed to show profile before)
2016-01-03 19:16:29 +01:00
Mikael Nordfeldth
7df8a6b731
This version of the EventPlugin won't work with StatusNet any longer
2016-01-03 16:23:44 +01:00
Mikael Nordfeldth
aa3028e5d9
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into mmn_fixes
2016-01-03 16:23:07 +01:00
mmn
3251ef3b51
Merge branch 'beautify_profile_list' into 'nightly'
...
Beautify profiles and groups lists
Some css fixes to make groups and profiles list more consistent:
In base:
* Remove bullets that were floating around
* Reduce font size to fit and look better
* Group nickname is bold
* Same location and full name layout in both groups and profile lists
In neo-gnu:
* Align vertically location
In neo-quitter:
* Make group list look like profile one
* Small adjustments due to changes to base
How it looks with neo-gnu
Profile:

Groups:

How it looks with neo-quitter
Profile:

Group:

See merge request !26
2016-01-03 15:22:32 +00:00
Mikael Nordfeldth
95d415257a
Merge branch 'nightly' into singpolyma/gnu-social-events-saveObjectFromActivity
...
Conflicts:
plugins/Event/EventPlugin.php
plugins/Event/classes/RSVP.php
I just fixed 'em with magic!
2016-01-03 13:08:34 +01:00
Mikael Nordfeldth
0dc7fcce5b
Fixes issue #94 with undefined 'fr'
...
I just copied the English example...
2016-01-03 00:45:47 +01:00
Mikael Nordfeldth
336f099241
Don't store object type for verbs (as they don't have it)
2016-01-02 16:05:20 +01:00
Mikael Nordfeldth
fe328ae5e4
Fix because qvitter supplies a twitter array value which is an array
...
works for json API, not for XML, so we make an exception here...
2016-01-02 02:01:54 +01:00
Mikael Nordfeldth
cf6e06a5dd
Avoid exception for invalid URL aborting rendering for parent notice if it fails
2016-01-02 00:09:10 +01:00
Mikael Nordfeldth
0dfafe2567
NewnoticeAction now uses Notice::saveActivity(...)
2016-01-01 20:18:54 +01:00
Mikael Nordfeldth
26a6eca94e
Location::fromOptions(Notice::locationOptions(...))
2016-01-01 19:29:31 +01:00
Mikael Nordfeldth
f4309ed715
whitespace switch for code layout
2016-01-01 18:43:37 +01:00
Mikael Nordfeldth
e02c10a589
common_render_content doesn't require a Profile now
2016-01-01 18:40:58 +01:00
Mikael Nordfeldth
54325e266f
upgrade script makes sure all notices have rendered copies
2016-01-01 18:30:38 +01:00
Mikael Nordfeldth
ad4beb9091
->getID() instead of ->id
2016-01-01 18:21:54 +01:00
Mikael Nordfeldth
10973dcf69
Don't require a notice object to common_linkify_mentions
2016-01-01 18:20:42 +01:00
Mikael Nordfeldth
86106b890a
Output fixed sizes of thumbnails so we don't get jumpy scrolling
2016-01-01 14:13:16 +01:00
Mikael Nordfeldth
4fc2b2584b
RSVPs refer to Happening (event) by URI instead of ID now
2015-12-31 19:23:05 +01:00
Mikael Nordfeldth
34ce2f6cfa
minor happening changes
2015-12-31 18:08:12 +01:00
Mikael Nordfeldth
f6df44ea85
Handle feed imports with exceptions better
2015-12-31 15:05:35 +01:00
Mikael Nordfeldth
7adf1c99fc
s/LOG_ERROR/LOG_ERR/
2015-12-31 13:04:50 +01:00
Mikael Nordfeldth
7f1ce07e9f
Logging destinations and unnecessary debug
2015-12-31 13:00:20 +01:00
Mikael Nordfeldth
fab745c6d6
Exception throwing and proper db retrieval
...
ActivityModeration plugin and its Deleted_notice class.
2015-12-31 12:42:33 +01:00
Mikael Nordfeldth
6606781916
Proper error message in exception
2015-12-31 12:41:02 +01:00
Mikael Nordfeldth
5ba6be1a87
Deleted_notice had a superfluous field
2015-12-31 12:33:59 +01:00
Mikael Nordfeldth
df19791a8f
Wups, $notice not $stored in the old function...
2015-12-31 02:37:42 +01:00
Mikael Nordfeldth
8b0fdfb4a0
Notice conversation is perhaps not set yet
2015-12-31 02:35:13 +01:00
Mikael Nordfeldth
7cf6aaecd0
Don't do saveKnownReplies unless it's a verb=post
2015-12-31 02:31:35 +01:00
Mikael Nordfeldth
66289d3e76
Use recently implemented functions in saveKnownReplies
2015-12-31 02:22:49 +01:00
Mikael Nordfeldth
6772d991ae
Only provide Notice oEmbed data for local notices
2015-12-31 01:55:18 +01:00
Mikael Nordfeldth
f61187a210
local/* is already in root .gitignore
2015-12-31 01:54:34 +01:00
Mikael Nordfeldth
bceece3bb9
issue #93
2015-12-30 18:03:45 +01:00
Mikael Nordfeldth
b0bf620c61
RecoverpasswordAction uses User->setPassword()
2015-12-30 17:53:43 +01:00
Mikael Nordfeldth
29847f172f
setPassword now runs validate too
2015-12-30 17:51:57 +01:00
Mikael Nordfeldth
d7a8ee99af
Added User->setPassword($password)
2015-12-30 17:44:24 +01:00
Mikael Nordfeldth
998db39b1a
Notification mails are sent again fixes ssue #99
...
The problem was that the ActivityVerbPostPlugin handled 'post' verbs
but didn't handle the notifications for them, so now we're returning
true in the event so the default behaviour (sending to 'getReplies'
recipients) is done by default.
2015-12-30 17:35:47 +01:00
mmn
ad5d5f8054
Merge branch 'nightly' into 'nightly'
...
fixes this issue: https://quitter.se/notice/4344600
See merge request !71
2015-12-30 15:38:19 +00:00
hannes
08be0e5c67
fixes this issue: https://quitter.se/notice/4344600
2015-12-30 01:54:48 +00:00
Mikael Nordfeldth
c0ef167514
create storage directories automatically
2015-12-28 00:35:02 +01:00
Mikael Nordfeldth
2f836e2a59
GNU social config paths, removed StatusNet/Laconica
2015-12-28 00:09:06 +01:00
Mikael Nordfeldth
17a65ff873
background folder has never been used for GNU social
2015-12-28 00:00:51 +01:00
Mikael Nordfeldth
7f4b51e246
minor tuning to nginx example config
...
for example we really do wish to force people to use HTTPS ;)
2015-12-27 23:58:10 +01:00
Mikael Nordfeldth
4bc0b374bc
File_redirection should get URLs properly
2015-12-27 21:36:23 +01:00
Mikael Nordfeldth
bd00ef839d
split() is deprecated and should be explode()
...
We don't need the regexpness anyway.
2015-12-27 15:22:38 +01:00
Mikael Nordfeldth
556d6e198f
Confirm_address field address_extra _can_ be NULL
2015-12-27 15:01:28 +01:00
Mikael Nordfeldth
cf916141d0
Group membership URI needs dataobjects not IDs
2015-12-27 13:01:24 +01:00
Mikael Nordfeldth
feb6b636f4
File_oembed varchar to text changes
...
No need to have text length limitations in the database for fields which
very well may be longer than what was previously set.
2015-12-27 12:11:29 +01:00
Mikael Nordfeldth
12d77ac3e4
varchar to text since there's no reason to limit the fields
...
They caused problems when quitter.se was upgrading because someone was
named ryanjjjjjjjjjjjjjjjjjjj[and more than 191 'j's] etc.
2015-12-27 11:50:11 +01:00
Mikael Nordfeldth
4a31e4992d
Clarify that notices are also deleted with nukefile.php
2015-12-27 11:43:25 +01:00
Mikael Nordfeldth
6026dcaed1
Report if the email was not sent!
2015-12-27 02:16:12 +01:00
Mikael Nordfeldth
62c4ffe889
Server exceptions should reasonably be 5xx
2015-12-27 02:15:37 +01:00
Mikael Nordfeldth
b76461fc78
syntax error
2015-12-27 01:42:03 +01:00
Mikael Nordfeldth
0ac71c2b7b
Duplicate URI means we have it already, I assume
2015-12-27 01:40:00 +01:00
Mikael Nordfeldth
83c112e24b
Handle lack of parent nicely
2015-12-26 16:36:03 +01:00
Mikael Nordfeldth
306df3dc3b
Logging fixes
2015-12-26 16:27:06 +01:00
mmn
ace47a4512
Merge branch 'rm-design-config-doc' into 'nightly'
...
Remove $config['design'] documentation
I believe those options are gone since
36d619480a
Ref. #109
See merge request !70
2015-12-23 21:04:25 +00:00
mmn
48f31928e9
Merge branch 'autocomplete-group' into 'nightly'
...
Autocomplete group
Group autocompletion wasn't working for a couple of reasons:
1. $profile wasn't set (d8092207c0 )
2. Profile::getUri() wasn't working for Groups, causing Profile::getAcctUri() to throw a ProfileNoAcctUriException (3e830dad37 )
See merge request !68
2015-12-23 21:04:18 +00:00
mmn
4904c2bc10
Merge branch 'profile-prefs-getall' into 'nightly'
...
Fixup Profile_prefs::getAll()
Ref. #98
See merge request !69
2015-12-23 21:03:55 +00:00
Chimo
cc26c4cb1a
Remove $config['design'] documentation
...
I believe those options are gone since
36d619480a
2015-12-21 17:53:30 +00:00
Chimo
90945e548b
Profile_prefs::getAll fix prefs loop
...
DataObject::fetch doesn't return an object.
2015-12-17 14:58:06 +00:00
Chimo
71119e4980
Profile_prefs::getAll fix call to listFind
...
2nd argument needs to be an array
2015-12-17 14:55:39 +00:00
Chimo
3e830dad37
Make Profile::getUri work with Groups
...
and by extension Profile::getAcctUri
2015-12-15 21:50:10 -05:00
Chimo
d8092207c0
Autocomplete: Fix $profile being null for groups
2015-12-15 21:48:18 -05:00
Mikael Nordfeldth
bb0faaea56
Merge branch 'mmn_fixes' into nightly
2015-12-15 12:34:12 +01:00
Mikael Nordfeldth
f5ed66280b
$url should've been $file->getUrl()
2015-12-15 12:31:10 +01:00
Mikael Nordfeldth
2b4a6c7dd7
Don't check Link header if not set
2015-12-15 11:51:16 +01:00
Mikael Nordfeldth
ef4c11d262
Better checks for defined array indexes
2015-12-15 11:50:57 +01:00
Mikael Nordfeldth
0d39337683
Merge branch 'master' into nightly
2015-12-14 22:11:26 +01:00
mmn
67c0c1b6c5
Merge branch 'send-twitter-replies-to-twitter' into 'master'
...
Always send Twitter replies to Twitter
If is_twitter_notice($notice->reply_to) then send it to Twitter, even
if twitter import is off. It's a reply to a Twitter notice, it should
go there!
(Also retweets.)
See merge request !42
2015-12-14 21:10:57 +00:00
mmn
0baa9debbc
Merge branch 'direct-feed-sub' into 'master'
...
If we are given a direct URL to a feed, use that
See merge request !54
2015-12-14 21:09:56 +00:00
mmn
1644608376
Merge branch 'twitter-show-rel-syndication' into 'master'
...
Include rel-syndication link for tweets
As per: <http://microformats.org/wiki/rel-syndication >
This allows some services to find a post in Twitter.
See merge request !44
2015-12-14 21:09:08 +00:00
mmn
0e91a38c9c
Merge branch 'firefox-sub-link' into 'master'
...
Link to add to Firefox as feedreader
This allows easily subscribing to any feed firefox detects in your GNU Social instance.
See merge request !55
2015-12-14 21:08:22 +00:00
mmn
0f938ff234
Merge branch 'fix-twitter-uri' into 'master'
...
Twitter URIs have changed
The #! was deprecated ages ago, and Twitter forces HTTPS these days.
See merge request !43
2015-12-14 21:07:48 +00:00
Mikael Nordfeldth
c2ea85a5e2
Merge branch 'master' into nightly
2015-12-14 22:07:06 +01:00
mmn
1be376cf87
Merge branch 'inbound-linkback' into 'master'
...
Accept mentions/replies/rsvps/likes via pingback and webmention
This makes the Linkback plugin bidirectional, allowing reply/mention federation between GNU Social and any pingback-enabled service (including any Wordpress site).
See merge request !41
2015-12-14 21:05:25 +00:00
mmn
1eff108561
Merge branch 'twitter-check-dupe-by-uri' into 'master'
...
TwitterBridge also check for dupe by uri
In case a twitter item came in from some other source (such as linkback).
See merge request !45
2015-12-14 21:04:22 +00:00
mmn
2addf8e456
Merge branch 'repost-of-uf2' into 'master'
...
Mark up link to original as a repost for repeats
http://indiewebcamp.com/repost
See merge request !46
2015-12-14 21:03:38 +00:00
Mikael Nordfeldth
ef4e61c91b
Merge branch 'master' into nightly
2015-12-14 22:03:04 +01:00
Mikael Nordfeldth
4ea396f871
Merge branch 'master' into mmn_fixes
2015-12-14 22:01:50 +01:00
mmn
edd62e58fd
Merge branch 'at-mention-url' into 'master'
...
MentionURL Plugin
This plugin enables users to use the syntax `@twitter.com/singpolyma` to mention users the system does not know about, or to be more specific when a nickname is ambiguous.
See merge request !53
2015-12-14 21:01:42 +00:00
mmn
8d26d83d7a
Merge branch 'group-join-approve-reject-button-icons' into 'nightly'
...
Add icons to group-join approval/rejection buttons
Relates to #106
See merge request !66
2015-12-14 20:48:36 +00:00
mmn
2dd968f94e
Merge branch 'group-join-rejections' into 'nightly'
...
Fix group-join request rejections
Relates to #105
See merge request !65
2015-12-14 20:48:18 +00:00
mmn
d5d8068632
Merge branch 'group-members-pending' into 'nightly'
...
Fix "pending members" group list
Related to #104
See merge request !64
2015-12-14 20:47:47 +00:00
mmn
5f0412b9ee
Merge branch 'api-docs' into 'nightly'
...
Add AtomPub, Twitter-compat. API documentation to doc-src/
See merge request !62
2015-12-14 20:47:17 +00:00
Mikael Nordfeldth
289116cb64
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2015-12-14 21:45:46 +01:00
Mikael Nordfeldth
20592f184d
getID() will complain loudly if something is wrong
...
(just ->id would not)
2015-12-14 21:44:59 +01:00
Mikael Nordfeldth
42c653a9d0
Merge commit '5c4a7a10' into nightly
...
hannes making sure notice is a repeat and not a delete activity notice
2015-12-14 21:42:08 +01:00
mmn
c114c6bbad
Merge branch 'php-minversion-detec' into 'nightly'
...
installer::checkPrereqs bump PHP version to 5.5.0
Related to #102
See merge request !63
2015-12-14 20:37:53 +00:00
mmn
129bd1bf03
Merge branch 'fix-setpassword' into 'nightly'
...
Fix /scripts/setpassword.php
common_munge_password is expecting a Profile, we were passing a user_id.
Thanks @aroque for the fix ( ref. #100 )
See merge request !67
2015-12-14 20:37:26 +00:00
Mikael Nordfeldth
d659e0aaf9
We have to print/echo when outputting json (thanks hannes)
2015-12-14 21:31:10 +01:00
Mikael Nordfeldth
8d1105fe73
We have to print/echo when outputting json (thanks hannes)
2015-12-14 21:29:39 +01:00
Mikael Nordfeldth
441e2c8d34
redir_info only has data if we ran discovery
2015-12-08 11:42:09 +01:00
Mikael Nordfeldth
4fecda58ff
Full identifiers for Autocomplete, less confusing
2015-12-05 16:18:59 +01:00
Mikael Nordfeldth
376d545082
Remember to purify HTML...
2015-12-05 15:56:50 +01:00
Mikael Nordfeldth
c498db147a
ircs URLs work fine in Firefox at least
2015-12-05 13:02:49 +01:00
Chimo
10bb4cb659
Fix /scripts/setpassword.php
...
common_munge_password is expecting a Profile, we were passing a user_id.
Thanks @aroque for the fix ( ref. #100 )
2015-12-04 17:09:06 +00:00
Chimo
b537696370
Add icons to group-join approval/rejection buttons
2015-12-04 17:00:35 +00:00
Chimo
6d9ea620a3
Fix group-join request rejections
2015-12-04 16:11:15 +00:00
Chimo
a06dc57621
Fix "pending members" group list
2015-12-04 15:47:40 +00:00
Chimo
3e16e31080
installer::checkPrereqs bump PHP version to 5.5.0
2015-12-04 15:22:58 +00:00
Mikael Nordfeldth
831e9db7ec
Various minor theme enhancements in neo-gnu
2015-11-30 02:31:51 +01:00
Mikael Nordfeldth
4479d780e5
List groups with nickname instead of full name in sidebar
2015-11-30 02:21:17 +01:00
Mikael Nordfeldth
334a0d56e7
Oembed slimmed to only do discovery (soon we get og: discovery too)
2015-11-30 02:06:04 +01:00
Mikael Nordfeldth
8bab642cc7
quickGetJson for HTTP requests to return json objects
2015-11-30 02:05:06 +01:00
Mikael Nordfeldth
b7edac2610
HTTPClient get $params array and oEmbedHelper uses it
2015-11-30 01:28:18 +01:00
Chimo
c95f74018d
Add AtomPub, Twitter-compat. API documentation to doc-src/
2015-11-24 13:00:32 -05:00
Mikael Nordfeldth
fbe0e68617
Events listing, but the stream will change soon
2015-11-23 14:40:59 +01:00
Mikael Nordfeldth
5b847eff12
bump beta version number
2015-11-23 00:42:13 +01:00
Mikael Nordfeldth
bca4bb8373
allow form ->li() to set $class
2015-11-23 00:40:28 +01:00
Mikael Nordfeldth
b01484a0a3
Managed_DataObject::newUri was called improperly
2015-11-23 00:39:49 +01:00
hannes
5c4a7a1052
make sure returned notice is a repeat, i.e. not a delete activity notice
2015-11-22 20:28:07 +00:00
hannes
1eba33590b
ActivityVerb::SHARE instead of http://activitystrea.ms/schema/1.0/share
2015-11-22 20:26:08 +00:00
hannes
70695a1463
make sure the notice is a repeat, i.e. not a delete activity notice that also can have a repeat_of set
2015-11-22 18:59:56 +00:00
Mikael Nordfeldth
1630424797
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2015-11-20 18:50:26 +01:00
mmn
b33b40db45
Merge branch 'refactor-file-processNew' into 'nightly'
...
Refactor on File::processNew
The code was so involved there was even a comment asking for a refactor.
Now, File_redirection::where always returns a nice File_redirection
object instead of an array or string or nothing. The object is
either one which already existed or else a new, unsaved object.
Instead of duplicating "does it exist" checks everywhere, do it in
File_redirection::where. You either get what exists or something to save.
An unsaved File_redirection may be paired with an unsaved File.
You will want to save the File first (using ->saveFile()) and put the
id in File_redirection#file_id before saving.
See merge request !57
2015-11-20 17:50:01 +00:00
Mikael Nordfeldth
38c84a92c7
Merge request #59 which was directed at master
2015-11-20 18:47:21 +01:00
mmn
5d548d157f
Merge branch 'master' into 'master'
...
block check can't be done inside the same try-expression as Subscription::getSub…
…scription(), since if that throws a NoResultException, the block check will not be done. and if you're blocking someone you are not subscribing to them.
See merge request !59
2015-11-20 17:46:53 +00:00
hannes
abb8d1273e
block check can't be done inside the same try-expression as Subscription::getSubscription(), since if that throws a NoResultException, the block check will not be done. and if you're blocking someone you are not subscribing to them.
2015-11-19 15:55:11 +00:00
Stephen Paul Weber
4f0fae9e90
Show better source for linback items
2015-11-12 19:07:26 +00:00
Stephen Paul Weber
11810bbf54
Update conversation when we update reply_to
...
Or repeat_of
2015-11-12 19:06:17 +00:00
Stephen Paul Weber
47db1ab063
Autodiscovery header for webmention
2015-11-12 19:06:17 +00:00
Stephen Paul Weber
f09a82268f
Ignore self pings
2015-11-12 19:06:17 +00:00
Stephen Paul Weber
b95b318052
That never was meant to be in that if
2015-11-12 19:06:16 +00:00
Stephen Paul Weber
6aba21fcd8
Use author-declared URL as URI
...
Will make brid.gy work better, for example.
2015-11-12 19:06:16 +00:00
Stephen Paul Weber
fa1e4620cf
Add pingback frontend
2015-11-12 19:06:16 +00:00
Stephen Paul Weber
aa4d880148
Search in sub-items for links to the target as well
2015-11-12 19:06:16 +00:00
Stephen Paul Weber
96e0819f00
Catch exception that this generates when there is no result
2015-11-12 19:06:16 +00:00
Stephen Paul Weber
c5bdf6924d
Fix duplicate detection
2015-11-12 19:06:16 +00:00
Stephen Paul Weber
64ac344efa
Update on duplicate linkback
...
This especially allows mentioning mulitple users, etc.
2015-11-12 19:06:16 +00:00
Stephen Paul Weber
b9971e8a80
Linkback to user should work
2015-11-12 19:06:15 +00:00
Stephen Paul Weber
1e3cf08d82
Ignore non-local notices as targets
2015-11-12 19:06:15 +00:00
Stephen Paul Weber
dbfb698859
Webmention frontend
2015-11-12 19:06:15 +00:00
Stephen Paul Weber
96fb18da3f
Initial helpers for verification and microformats
...
This will form the backend of all incoming linkbacks.
We verify the linkback is real and then try to form a rich notice
out of it.
2015-11-12 19:06:15 +00:00
Mikael Nordfeldth
d0e7203d88
Make it clearer that we're handling group IDs
2015-11-08 23:31:45 +01:00
Mikael Nordfeldth
acd4980ab4
Fix federation issue with groups (bad list order)
2015-11-08 23:31:23 +01:00
Mikael Nordfeldth
844670f88d
Ooops, copypasted something into the wrong place.
2015-11-08 23:24:20 +01:00
Mikael Nordfeldth
65184782aa
OStatus usage of static Validate::* calls fixed
2015-11-08 10:33:41 +01:00
Mikael Nordfeldth
f29daa22b6
Merge branch 'master' of git.gnu.io:gnu/gnu-social into nightly
2015-11-06 13:39:17 +01:00
mmn
dbdac9cfbe
Merge branch 'in-reply-to-uf2' into 'master'
...
Add direct link to parent notice
This is partly for usability, and partly to make Linkbacks for replies work (when the plugin is enabled).
See merge request !37
2015-11-06 12:39:02 +00:00
Mikael Nordfeldth
e40014b4de
separate classes into files in DirectMessage plugin
2015-11-06 13:35:45 +01:00
Mikael Nordfeldth
c83deecba2
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2015-11-06 13:33:24 +01:00
mmn
5f999e84d8
Merge branch 'nightly' into 'nightly'
...
getParent() method will fail if the parent notice does not exist in the notice table
getParent() method will fail if the parent notice does not exist in the notice table. See https://quitter.no/notice/709400
There are situations where a user delete his notice which could be a parent notice to a reply.
The user which replied to this deleted notice will then have broken timeline.
This is caused by the Notice.getParent() method which tries to return the selection of non existing parent notice.
I've tried this code on quitter.no and it seems to work.
See merge request !35
2015-11-06 12:28:00 +00:00
abjectio
507f9a28c0
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2015-11-05 17:34:34 +01:00
Mikael Nordfeldth
7ccd36849e
Merge branch 'master' of git.gnu.io:gnu/gnu-social into nightly
...
Conflicts:
plugins/OStatus/OStatusPlugin.php
master vs. nightly thing
2015-11-05 16:16:02 +01:00
mmn
f345f1d605
Merge branch 'renew-pshb' into 'master'
...
Actually use the renew code
We have the code to check once a day and renew, but currently it's
just in a script directory. This change adds an event listener
hook to check and renew subscriptions daily.
Closes #83
See merge request !38
2015-11-05 15:13:16 +00:00
mmn
deb5275c7a
Merge branch 'object-types-are-absolute' into 'master'
...
Stop incorrecly changing object_type to relative URI
All other data is using absolute URI for object_type.
See merge request !40
2015-11-05 15:12:41 +00:00
mmn
959f971a65
Merge branch 'fix-webfinger-link-header' into 'master'
...
Add all link headers, not just the last one
Given the way Link headers work, it does not make any sense to
just replace all other ones. Especially when we ourselves are adding
in a loop.
See merge request !47
2015-11-05 15:12:10 +00:00
mmn
9f83e60f25
Merge branch 'pings-interop' into 'master'
...
Clean up Linkback plugin and add Webmention support
Closes #82
Fixes Pingback, adds Webmention, makes linkbacks opt-out-able for users (at request of quitter.se admin)
See merge request !36
2015-11-05 15:11:29 +00:00
Mikael Nordfeldth
0e32729e59
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2015-11-05 16:07:42 +01:00
Mikael Nordfeldth
c950f18546
Merge branch 'master' into nightly
...
Some merge requests that were aimed at master
2015-11-05 16:07:05 +01:00
mmn
96e0867d4c
Merge branch 'master' into 'master'
...
update URL
bugz.foocorp.net and gitorious.net are outdated
git.gnu.io is current
See merge request !58
2015-11-05 15:05:55 +00:00
mmn
45b24286e5
Merge branch 'status-204' into 'master'
...
Accept 204 for PuSH subscription
Some hubs (notably, pushpress, used by wordpress.com) return 204 to mean success.
This used to be allowed by the spec, so no harm in accepting it.
See merge request !48
2015-11-05 15:03:42 +00:00
mmn
f513ceac7d
Merge branch 'handle-rss-guid' into 'master'
...
Respect isPermalLink=false on RSS guid
See merge request !49
2015-11-05 15:02:20 +00:00
mmn
5c768d7ef7
Merge branch 'twitter-verb' into 'nightly'
...
TwitterBridge: Add $notice->verb on import
Since /plugins/ActivityModeration::onStartNotieSave expects it to be there when calling ActivityUtils::compareVerbs. Otherwise, the following exception is unhandled:
2015-10-26 15:33:03 LOG_ERR: [sn.chromic.org:queuedaemon.php:25931] Unhandled exception: No URI to resolve in ActivityUtils::resolveUri
0: /lib/activityutils.php(353): ActivityUtils::resolveUri(NULL)
1: /lib/activityutils.php(364): ActivityUtils::compareTypes(NULL, Array)
2: /plugins/ActivityModeration/ActivityModerationPlugin.php(113): ActivityUtils::compareVerbs(NULL, Array)
3: [internal function]: ActivityModerationPlugin->onStartNoticeSave(Object(Notice))
4: /lib/event.php(105): call_user_func_array(Array, Array)
5: /plugins/TwitterBridge/lib/twitterimport.php(173): Event::handle('StartNoticeSave', Array)
6: /plugins/TwitterBridge/lib/twitterimport.php(72): TwitterImport->saveStatus(Object(stdClass))
7: /plugins/TwitterBridge/lib/tweetinqueuehandler.php(52): TwitterImport->importStatus(Object(stdClass))
8: /lib/dbqueuemanager.php(94): TweetInQueueHandler->handle(Array)
9: /lib/iomaster.php(287): DBQueueManager->poll()
10: /lib/iomaster.php(161): IoMaster->poll()
11: /scripts/queuedaemon.php(111): IoMaster->service()
12: /lib/spawningdaemon.php(189): QueueDaemon->runThread()
13: /lib/spawningdaemon.php(118): SpawningDaemon->initAndRunChild(2)
14: /lib/daemon.php(168): SpawningDaemon->run()
15: /scripts/queuedaemon.php(181): Daemon->runOnce()
16: {main}
See merge request !50
2015-11-05 15:01:07 +00:00
mmn
4b7c904fe0
Merge branch 'correct-author-for-repeat' into 'master'
...
Markup correct author for a repeat
The original author is not the author of this entry, but of the original entry.
See merge request !51
2015-11-05 15:00:35 +00:00
mmn
a3ddc4ec0c
Merge branch 'support-atom-namespaces-in-rss-author' into 'master'
...
Support more author types on RSS
Specifically, any ActivityStreams or ATOM namespaces being used on
an rss channel.
See merge request !52
2015-11-05 15:00:07 +00:00
mmn
3ca4af6868
Merge branch 'group-join' into 'nightly'
...
Add User_group::getObjectType
Since 174586bd51 , I'm unable to join groups with the logs complaining
about getObjectType not existing on the User_group object.
Note: I'm not sure if this is the correct value to return here, but I
was able to joing groups successfully using this. Let me know if it needs
to be changed and I'll update the Merge Request!
See merge request !56
2015-11-05 14:57:29 +00:00
Matthias Fritzsche
ba623d2b4e
update URL
...
bugz.foocorp.net and gitorious.net are outdated
git.gnu.io is current
2015-11-04 12:31:23 +01:00
Stephen Paul Weber
a9b1b60a97
Refactor on File::processNew
...
The code was so involved there was even a comment asking for a refactor.
Now, File_redirection::where always returns a nice File_redirection
object instead of an array or string or nothing. The object is
either one which already existed or else a new, unsaved object.
Instead of duplicating "does it exist" checks everywhere, do it in
File_redirection::where. You either get what exists or something to save.
An unsaved File_redirection may be paired with an unsaved File.
You will want to save the File first (using ->saveFile()) and put the
id in File_redirection#file_id before saving.
2015-11-02 05:15:08 +00:00
Chimo
d7b58491ce
Add User_group::getObjectType
...
Since 174586bd51 , I'm unable to join groups with the logs complaining
about getObjectType not existing on the User_group object.
2015-10-29 20:11:57 -04:00
Stephen Paul Weber
a74572b469
Use mb_strlen
2015-10-28 01:46:08 +00:00
Stephen Paul Weber
6ac8b845bf
Improvements inspired by the OStatus code
2015-10-28 01:45:51 +00:00
Stephen Paul Weber
fe4c8a771b
Replace text with nickname if shorter
2015-10-28 01:24:58 +00:00
Stephen Paul Weber
0aa759fab7
Allow mentioning bare domains with OStatus
2015-10-28 01:24:42 +00:00
Stephen Paul Weber
2edf535ecd
Add length argument to plugin
2015-10-28 01:24:29 +00:00
Stephen Paul Weber
85d5cfede5
Link to add to Firefox as feedreader
2015-10-28 01:10:28 +00:00
Stephen Paul Weber
e58c529c53
If we are given a direct URL to a feed, use that
2015-10-28 00:54:20 +00:00
Stephen Paul Weber
2207eacc92
New length format for other kinds of mentions
2015-10-28 00:15:08 +00:00
Stephen Paul Weber
fed0895d98
Move the functionality to a plugin
...
Use an associated model to prevent race conditions on creating the
profile object.
2015-10-28 00:11:54 +00:00
Mikael Nordfeldth
1b81131c51
Shared notices didn't save the URL
2015-10-28 00:13:17 +01:00
Stephen Paul Weber
e1de6e0aa9
Support more author types on RSS
...
Specifically, any ActivityStreams or ATOM namespaces being used on
an rss channel.
2015-10-27 18:43:57 +00:00
Mikael Nordfeldth
ebbb9a8990
Bad HTML in translation.
2015-10-27 19:05:07 +01:00
Stephen Paul Weber
54e87dd2c3
Morkup correct author for a repeat
...
The original author is not the author of this entry, but of the original entry.
2015-10-27 17:19:03 +00:00
Chimo
3ae81f095c
TwitterBridge: Add $notice->verb on import
...
Since /plugins/ActivityModeration::onStartNotieSave expects it to be there when calling ActivityUtils::compareVerbs. Otherwise, the following exception is unhandled:
2015-10-26 15:33:03 LOG_ERR: [sn.chromic.org:queuedaemon.php:25931] Unhandled exception: No URI to resolve in ActivityUtils::resolveUri
#0 /lib/activityutils.php(353): ActivityUtils::resolveUri(NULL)
#1 /lib/activityutils.php(364): ActivityUtils::compareTypes(NULL, Array)
#2 /plugins/ActivityModeration/ActivityModerationPlugin.php(113): ActivityUtils::compareVerbs(NULL, Array)
#3 [internal function]: ActivityModerationPlugin->onStartNoticeSave(Object(Notice))
#4 /lib/event.php(105): call_user_func_array(Array, Array)
#5 /plugins/TwitterBridge/lib/twitterimport.php(173): Event::handle('StartNoticeSave', Array)
#6 /plugins/TwitterBridge/lib/twitterimport.php(72): TwitterImport->saveStatus(Object(stdClass))
#7 /plugins/TwitterBridge/lib/tweetinqueuehandler.php(52): TwitterImport->importStatus(Object(stdClass))
#8 /lib/dbqueuemanager.php(94): TweetInQueueHandler->handle(Array)
#9 /lib/iomaster.php(287): DBQueueManager->poll()
#10 /lib/iomaster.php(161): IoMaster->poll()
#11 /scripts/queuedaemon.php(111): IoMaster->service()
#12 /lib/spawningdaemon.php(189): QueueDaemon->runThread()
#13 /lib/spawningdaemon.php(118): SpawningDaemon->initAndRunChild(2)
#14 /lib/daemon.php(168): SpawningDaemon->run()
#15 /scripts/queuedaemon.php(181): Daemon->runOnce()
#16 {main}
2015-10-27 10:12:33 -04:00
Stephen Paul Weber
03c68d283d
Respect isPermalLink=false on RSS guid
2015-10-27 03:18:04 +00:00
Stephen Paul Weber
4c2bc465a0
Accept 204 for PuSH subscription
...
Some hubs (notably, pushpress, used by wordpress.com) return 204 to mean success.
This used to be allowed by the spec, so no harm in accepting it.
2015-10-27 03:16:39 +00:00
Stephen Paul Weber
fae7bc0bc0
Add all link headers, not just the last one
...
Given the way Link headers work, it does not make any sense to
just replace all other ones. Especially when we ourselves are adding
in a loop.
2015-10-25 18:42:37 +00:00
Stephen Paul Weber
dc36621dc2
Linkback to mentioned profiles
2015-10-25 17:22:15 +00:00
Stephen Paul Weber
21979bb7d7
Allow users to @mention URLs
...
Because inferring who you mean (especially in the presence of remotes) can suck
2015-10-23 21:15:40 +00:00
Stephen Paul Weber
033ed7e4aa
Mark up link to original as a repost for repeats
...
http://indiewebcamp.com/repost
2015-10-23 19:12:25 +00:00
Stephen Paul Weber
cd22be3374
Only show parent wrapper if there are some
2015-10-23 18:51:33 +00:00
Stephen Paul Weber
ddfb56d920
TwitterBridge also check for dupe by uri
...
In case a twitter item came in from some other source (such as linkback).
2015-10-23 18:03:44 +00:00
Stephen Paul Weber
983fd75ec9
Include rel-syndication link for tweets
...
As per: <http://microformats.org/wiki/rel-syndication >
This allows some services to find a post in Twitter.
2015-10-23 17:56:02 +00:00
Stephen Paul Weber
2030ddfc79
Reduce duplication by handling both cases in find
2015-10-23 16:26:35 +00:00
Stephen Paul Weber
439b466979
Use HTTPS for links to Twitter profiles as well
2015-10-23 16:24:04 +00:00
Stephen Paul Weber
d1f1063900
Twitter URIs have changed
...
The #! was deprecated ages ago, and Twitter forces HTTPS these days.
2015-10-23 16:19:54 +00:00
Stephen Paul Weber
123bb445db
Always send Twitter replies to Twitter
...
If is_twitter_notice($notice->reply_to) then send it to Twitter, even
if twitter import is off. It's a reply to a Twitter notice, it should
go there!
2015-10-23 15:37:11 +00:00
Stephen Paul Weber
8649591626
Stop incorrecly changing object_type to relative URI
...
All other data is using absolute URI for object_type.
2015-10-22 17:14:59 +00:00
Stephen Paul Weber
3e1a6a65e6
Event plugin uses saveObjectFromActivity for RSVP
...
The Event plugin is still using a deprecated hook for saving extra data,
which makes it harder to hook into from other plugins. This commit
fixes it to use the new hook for at least RSVPs.
NOTE: this plugin incorrectly sets the object_type of RSVP notices to
their verb. This was existing behaviour which I have preserved for
backwards-compatability.
2015-10-22 17:10:50 +00:00
Stephen Paul Weber
4b31bc3fd2
Enqueue renewals
...
Better for request times, etc
2015-10-21 01:50:03 +00:00
Stephen Paul Weber
df21c3c95d
Renew 1 day *before* the end, not 1 day *after*
2015-10-21 01:49:26 +00:00
Stephen Paul Weber
df46f123dd
Actually use the renew code
...
We have the code to check once a day and renew, but currently it's
just in a script directory. This change adds an event listener
hook to check and renew subscriptions daily.
2015-10-21 01:10:48 +00:00
Stephen Paul Weber
fc3f1f6942
Add direct link to parent notice
...
This is partly for usability, and partly to make Linkbacks for replies
work (when the plugin is enabled).
2015-10-19 18:40:40 +00:00
Stephen Paul Weber
677f0ac479
Allow users to opt out of sending linkbacks
2015-10-18 21:28:55 +00:00
abjectio
303fa91720
Removed inboxmessagelist.php - seems to be not needed. Ref. Issue #77
2015-10-18 17:34:36 +02:00
Stephen Paul Weber
c7e08195e4
Fix Pingback
...
This code was using the HTTPRequest helpers wrong. This commit sets the body directly instead of jamming the XML in as a POST param.
2015-10-17 13:39:46 +00:00
Stephen Paul Weber
d9d74ca96c
Send URL we publish
...
Webmention and Pingback both need the exact URL we are going to claim to link to to be present in our HTML source, so send them our actual original link.
Webmention clients are supposed to resolve this link. Pingback clients may still fail on shortened links.
2015-10-17 13:38:13 +00:00
abjectio
aa5bbdf6e5
Bug in catch(Exception) - parameter wrongly written
2015-10-16 23:48:05 +02:00
Stephen Paul Weber
3b1792c8b5
Add webmention support
2015-10-15 00:29:53 +00:00
Stephen Paul Weber
e4892d21b1
Note that we should handle relative URIs
2015-10-14 16:13:25 -05:00
Stephen Paul Weber
8edc5148d9
Normalize detection helpers
...
Will make it easier to see what's happening when we add a third one.
2015-10-14 15:54:47 -05:00
Stephen Paul Weber
63fd35dffa
Notify replies and repeats
...
This is especially useful for partial federation with remote accounts
that are not fully OStatus-enabled but support a pingback protocol.
Such accounts will still be notified of replies and repeats of their
content even without OStatus support, thus adding to the federated
universe.
2015-10-14 15:47:00 -05:00
Stephen Paul Weber
b43294ec6f
Use the getter, not a direct access
2015-10-14 15:33:48 -05:00
Stephen Paul Weber
a4a37d6fc9
More robust pingback link detection
2015-10-14 15:28:38 -05:00
abjectio
626333a59e
geParent() method will fail if the parent notice does not exist in the notice table. See https://quitter.no/notice/709400
2015-10-14 18:50:39 +02:00
Mikael Nordfeldth
2c8536dbf0
Link source==share notices
2015-10-14 01:30:29 +02:00
Mikael Nordfeldth
401b774c2f
Only set ->actor in a case where it has not yet been set
...
Otherwise it could overwrite it with the wrong actor (the "second round"
for share activities)
2015-10-14 01:20:50 +02:00
Mikael Nordfeldth
d260808cd3
intval for type assurance
2015-10-14 01:16:22 +02:00
Mikael Nordfeldth
79c40bc73b
Type-aware comparison is necessary for Notice is_local/scope
2015-10-14 00:42:15 +02:00
Mikael Nordfeldth
b6aeff89c4
Call Notice::saveActivity instead of Ostatus_profile->processActivity
2015-10-14 00:10:54 +02:00
Mikael Nordfeldth
236bf0b0f5
Remote notice creators should not have notice is_local default to LOCAL_PUBLIC
2015-10-14 00:10:01 +02:00
Mikael Nordfeldth
005c108118
Shared activities were missing the actor
2015-10-13 23:40:35 +02:00
Mikael Nordfeldth
5b307c0417
Add a url test in Notice::saveActivity
2015-10-13 23:39:40 +02:00
Mikael Nordfeldth
65adefe170
Wrong variable names in SharePlugin
2015-10-13 23:18:13 +02:00
Mikael Nordfeldth
4b69ef41e2
Bad variable name in File_redirection
2015-10-13 22:57:45 +02:00
Mikael Nordfeldth
e379c49d49
Removing excess debug logging
2015-10-13 22:55:27 +02:00
Mikael Nordfeldth
c8a907c828
Bookmark:addNew did not add a proper rel=related
2015-10-13 12:31:35 +02:00
Mikael Nordfeldth
3f4d4cb7a0
Better error handling in Bookmark
2015-10-12 18:28:32 +02:00
Mikael Nordfeldth
67e7bc55ea
Bookmarks are almost migrated
...
Now they are just not being saved in the bookmark table.
2015-10-12 17:48:23 +02:00
Mikael Nordfeldth
7834e67583
Just a functionifying of Notice->rendered
2015-10-12 17:16:13 +02:00
Mikael Nordfeldth
297d68f36c
Change Bookmark plugin version details
2015-10-12 09:47:30 +02:00
Mikael Nordfeldth
0e588bdeca
Woops, put the bookmark get* functions in the wrong file.
2015-10-11 22:08:28 +02:00
Mikael Nordfeldth
1dac0e709a
First step of making Bookmark saveActivity-compatible
2015-10-10 23:47:43 +02:00
Mikael Nordfeldth
b209276e72
Stricter typing for Bookmark plugin
2015-10-10 23:15:51 +02:00
Mikael Nordfeldth
5726459629
unmaintained plugins that accidentally got translations
2015-10-10 22:40:05 +02:00
mmn
0926316a76
Merge branch 'master' into 'nightly'
...
convert activity stream RFC3339 dates to mysql datetime format when saving remote event dates to db
See merge request !34
2015-10-10 20:38:01 +00:00
mmn
3255e2e1b8
Merge branch 'page_title_showstream' into 'nightly'
...
Show page title in user's profile page
Enable page title on user's profile page to make it consistent with all other pages and better orient users.

See merge request !22
2015-10-10 20:36:59 +00:00
mmn
32f77dbf05
Merge branch 'translation-snapshot-october-2015' into 'nightly'
...
Snapshot of the Transifex translation project - October 2015
It's been 7 months since the last localization update, and the files in the repository are out of sync with the current state of the project. Our Transifex team has since grown to 63 translators, many of them are active members of the GNU social community. I don't know how we will resolve this situation, but it is clear that we have to act. If you plan to redesign the plugin system in the future to support external repository for localizations, that would work as well. But now, please let us do an update. It would be a serious disgrace to the community to throw all of their hard work away.
See merge request !32
2015-10-10 20:36:04 +00:00
mmn
89d3d9b2ce
Merge branch 'usergroups_page' into 'nightly'
...
Improve display of user's groups page.
* Show page notice as for subscriptions
* Show instructions when user has no groups
* Add explanation of remote groups and link to skilledtest wiki
Here is how it looks when a logged in user is not following groups yet

After following a group, you still see the instruction notice. This way you have links to searching groups and creating a new one.

Finally when logged out:

The current version on nightly has basically no text at all.
See merge request !25
2015-10-10 20:35:36 +00:00
mmn
77951647ce
Merge branch 'oauth-default-icon' into 'nightly'
...
Add default icon to OAuth apps
When MySQL runs in strict mode, it doesn't seem possible to add a new OAuth app.
This is because:
* The 'icon' field has no defaults and also has NOT NULL constraint.
* GS uploads/sets the icon[1] (if provided) after the SQL insert[2]
The easiest fix seemed to be to provide a default icon value.
This change sets the default to the "blue peg" default avatar from the base theme.
[1]
7f30e61402/actions/newapplication.php (L176)
[2]
7f30e61402/actions/newapplication.php (L186)
See merge request !29
2015-10-10 20:34:22 +00:00
mmn
238d2a3876
Merge branch 'link-atom-fix' into 'nightly'
...
atom: <link> urls should be attr, not content
Some activities (ex: repeats and follows) have <link>s like this:
<link rel="alternate" type="text/html">http://example.org </link>
This commit changes them to:
<link rel="alternate" type="text/html" href="http://example.org "/>
See merge request !30
2015-10-10 20:33:58 +00:00
Mikael Nordfeldth
fe9457daea
Syntax and minor fixes
...
Deleted_notice and Bookmark getByPK assocative array for example.
2015-10-10 22:23:24 +02:00
Mikael Nordfeldth
174586bd51
Some code aligning for consistency
2015-10-10 22:09:51 +02:00
Mikael Nordfeldth
cae43344ec
Start reworking Bookmark plugin for more modern code
2015-10-10 21:56:02 +02:00
Mikael Nordfeldth
18f07a48e8
Using some Managed_DataObject::getByPK calls for consistency
2015-10-10 21:40:02 +02:00
Mikael Nordfeldth
37f2da03e1
newUri might as well be put in Managed_DataObject
2015-10-10 21:31:26 +02:00
Mikael Nordfeldth
45bc192625
If that $options key wasn't set, this won't change anything anyway
2015-10-10 21:22:07 +02:00
Mikael Nordfeldth
a793d211d2
Match parent class definition of clientError
2015-10-10 20:51:53 +02:00
Mikael Nordfeldth
b4c51b2d39
Use an atom:link to ApiMediaUpload response instead of mediahref
...
'cause why not?
2015-10-10 20:41:14 +02:00
Mikael Nordfeldth
9728270acd
Add mediahref in our incredibly arbitrary response
2015-10-10 17:15:29 +02:00
Mikael Nordfeldth
5d91c9a820
Don't send multiple error responses in ApiMediaUpload :)
2015-10-10 17:12:44 +02:00
Mikael Nordfeldth
2ad7c4313d
Search engine fix because Directory did a 'join'
...
Colliding columns with a very lacking error message from DB ;)
2015-10-10 12:16:12 +02:00
Mikael Nordfeldth
6376b78a80
I think I have made the delete verb generate proper AS
...
ActivityStreams had a different/better definition than me
in how to define the Delete verb data:
http://wiki.activitystrea.ms/w/page/23541872/Delete
2015-10-10 11:08:17 +02:00
Hannes Mannerheim
a9f879c2ba
better explanation
2015-10-10 00:20:32 +02:00
Hannes Mannerheim
b24191f9f9
convert activity stream RFC3339 dates to mysql datetime format when saving remote event dates to db
2015-10-10 00:11:54 +02:00
mmn
3154302b53
Merge branch 'master' into 'nightly'
...
make events federate
See merge request !33
2015-10-09 14:43:45 +00:00
Hannes Mannerheim
61ed36e446
make event urls federate
2015-10-09 16:22:47 +02:00
Mikael Nordfeldth
dd149a76f3
AtomPub should work now, at least for post/note
2015-10-09 16:19:26 +02:00
Mikael Nordfeldth
2dfd34b12d
Post verb default type is 'note'
2015-10-09 16:18:12 +02:00
Hannes Mannerheim
55655ba319
make event location federate
2015-10-09 16:16:13 +02:00
Hannes Mannerheim
827dffb94c
make event dates federate
2015-10-09 16:00:33 +02:00
Mikael Nordfeldth
2d3f1ef520
You don't have to push objects as references
2015-10-09 15:45:23 +02:00
Mikael Nordfeldth
0bdbb32f3b
Consistent camelcasing
2015-10-09 15:45:05 +02:00
Mikael Nordfeldth
5dc718c54d
Make Bsaic Auth work properly with RW actions
2015-10-09 15:43:17 +02:00
Hannes Mannerheim
5a2d760177
update from upstream
2015-10-09 14:40:43 +02:00
Hannes Mannerheim
499d4aadbc
make events federate
2015-10-09 13:10:48 +02:00
Mikael Nordfeldth
216a04df86
Switching variable access in ApiTimelineUser to GNUsocial improvements
2015-10-09 11:23:20 +02:00
Mikael Nordfeldth
3013b84e98
Don't enable StrictTransportSecurity by default
...
(but you should enable it if you use TLS, but there are many who do this
through their webserver and it's odd to have double headers etc...)
2015-10-09 10:55:12 +02:00
Mikael Nordfeldth
2d81df4760
Deleted_notice variable specification fixed
2015-10-08 13:20:17 +02:00
Mikael Nordfeldth
180958185f
Found newer Diaspora protocol specifications
...
http://www.rubydoc.info/github/Raven24/diaspora-federation/master/DiasporaFederation/Salmon/EncryptedSlap
2015-10-05 12:49:54 +02:00
Mikael Nordfeldth
ee6096cca8
FIXME: Diaspora has its own salmon slap semantics
2015-10-05 11:32:10 +02:00
Mikael Nordfeldth
3902dc963a
Diaspora encloses magic envelope in <atom:entry>??!!?!
2015-10-05 11:22:23 +02:00
Mikael Nordfeldth
0ba53edd96
Can't use return-value in empty()
2015-10-04 22:32:14 +02:00
Mikael Nordfeldth
ec19661312
Can't use return-value in empty()
2015-10-04 22:31:07 +02:00
digital dreamer
d7fd6bac72
Snapshot of the Transifex translation project - October 2015
2015-10-04 18:23:01 +02:00
Mikael Nordfeldth
af1b0915f4
Magic signature discovery and envelope changes
2015-10-04 17:26:35 +02:00
Mikael Nordfeldth
6afa091dca
Change some Salmon events and similar
...
Use Profile instead of User and (if we know it) send along the target
profile, so a Diaspora plugin can encrypt to the receiver.
2015-10-04 17:26:23 +02:00
Mikael Nordfeldth
f4ed171397
Make Magicsig capable of loading public PKCS1 keys
2015-10-04 17:22:19 +02:00
Mikael Nordfeldth
2970333adb
Set otherwise undiscovered salmonuri on OStatus script update-profile.php
2015-10-04 17:21:56 +02:00
Mikael Nordfeldth
57f26a97fb
var_export without true
2015-10-04 16:40:21 +02:00
Mikael Nordfeldth
4238875ebe
autoloading of Crypt_AES and Crypt_RSA is easier
2015-10-04 15:57:11 +02:00
Mikael Nordfeldth
684b9419a0
Add an event to get plugin discovery hints from XRD
2015-10-04 14:46:45 +02:00
Mikael Nordfeldth
2aed59a02a
Diaspora plugin is almost there (for remote salmon slaps at least)
2015-10-04 12:06:48 +02:00
Mikael Nordfeldth
9b461db4da
Send the entire XMLStringer object in MagicEnvelope events.
2015-10-04 09:59:01 +02:00
Mikael Nordfeldth
184293c634
Break out MagicEnvelope->toXML() functionality to allow for plugin flexibility
2015-10-04 00:17:07 +02:00
Mikael Nordfeldth
bc9e3b1843
Remove XSS attack vector in JoinListItem
2015-10-03 23:51:06 +02:00
Mikael Nordfeldth
30a4393afa
Move around some code related to Magic_envelope and signing
2015-10-03 23:35:46 +02:00
Mikael Nordfeldth
aab7667cd5
Sigh, copy-pasting when tired is a bad idea.
2015-10-03 16:19:38 +02:00
Mikael Nordfeldth
833abbb191
Fixes to Deleted_notice
2015-10-03 16:07:19 +02:00
Mikael Nordfeldth
e6d7534a88
We haven't created the Deleted_notice yet, just use target URI directly
2015-10-03 15:39:57 +02:00
Mikael Nordfeldth
db726ca294
Return the correct URI in Deleted_notice
2015-10-03 15:31:56 +02:00
Mikael Nordfeldth
7c68537b06
Deletes now federated. But might not be handled properly
2015-10-03 14:39:49 +02:00
Mikael Nordfeldth
db9f68e651
Sigh, use the correct variable name...
2015-10-03 13:45:06 +02:00
Mikael Nordfeldth
66a1d63dd0
if is_local was not provided to Notice:saveActivity it wouldn't be set
2015-10-03 13:24:31 +02:00
Mikael Nordfeldth
aba38d5586
bump to 1.2.0-beta1 as we have remote delete functionality now
2015-10-03 12:39:23 +02:00
Mikael Nordfeldth
1244e8d929
Somewhat better logging while still in trial phase
2015-10-03 12:33:33 +02:00
Mikael Nordfeldth
2e77a83816
Store delete verb as object_type=activity
2015-10-03 12:29:22 +02:00
Mikael Nordfeldth
dac617d95a
I think all the notice deletion calls are event-compatible now
...
This means we can handle DeleteNoticeAsProfile in plugins, such as
the ActivityModeration plugin.
2015-10-03 12:26:09 +02:00
Mikael Nordfeldth
88f7bb1ed5
Some work on ActivityModeration with notice deletion
...
Let's now create an event called DeleteNotice and also make sure we
handle the onNoticeDeleteRelated properly in ActivityModeration to
avoid possible endless loops etc.
2015-10-03 02:02:37 +02:00
Mikael Nordfeldth
ae73baf4ee
Undefined variable use
2015-10-03 01:47:40 +02:00
Mikael Nordfeldth
0c6fe78a73
Shorthand function for getActor
2015-10-03 00:43:34 +02:00
Mikael Nordfeldth
b8f52965a9
StoreRemoteMedia plugin to enable locally served thumbs of remote images
...
Add addPlugin('StoreRemoteMedia'); in your config.php to enable.
2015-10-01 22:18:47 +02:00
Mikael Nordfeldth
d52b7e3124
Oembed fiddling, nothing major
2015-10-01 22:18:33 +02:00
Mikael Nordfeldth
80bc7f0e25
File handling changes for better logic
...
Also prepares for StoreRemoteMediaPlugin, coming up...
2015-10-01 22:14:49 +02:00
Mikael Nordfeldth
5b7deee0cc
InlineAttachmentListItem put into its own file
2015-10-01 21:40:05 +02:00
Mikael Nordfeldth
3a6c98ff16
NoResultException is common if reply_to was not cleared on parent deletion
2015-09-30 22:55:06 +02:00
Mikael Nordfeldth
a09cf51b99
Move Ostatus_profile->processPost function into plugin
2015-09-29 15:19:13 +02:00
Mikael Nordfeldth
21a12a2f60
Some conversationRoot lookups failed with deleted notices
2015-09-28 22:36:04 +02:00
Mikael Nordfeldth
118a4f56ab
Script to test remote oEmbed endpoints
2015-09-28 12:25:40 +02:00
Mikael Nordfeldth
34b6d37266
Revert "Accessibility fix, make yes button more explicit"
...
This reverts commit 1864a9de38 .
The problem was another label that was missing (fixed in previous commit, the close button)
2015-09-28 00:49:26 +02:00
Mikael Nordfeldth
d6e56924fe
Accessibility improvement, title for popup close button
...
Apparently it read as "times" in screen readers.
2015-09-28 00:47:16 +02:00
Mikael Nordfeldth
ad3b62cf2f
ShowprofiletagAction now extends ShowstreamAction
2015-09-27 23:46:30 +02:00
Mikael Nordfeldth
0e24709989
Profile/Peopletag file splitting for autoload
2015-09-27 22:51:50 +02:00
Mikael Nordfeldth
edb73ec480
Use exception instead of if-statement in File::saveNew
2015-09-27 12:29:38 +02:00
Mikael Nordfeldth
02418cffd8
Be harsher on database saving failure for File entry
2015-09-27 11:54:52 +02:00
Mikael Nordfeldth
0bd0c65b87
Bring back title to DocAction
2015-09-15 14:26:33 +02:00
Mikael Nordfeldth
b209dcf8a7
DocAction now extends ManagedAction
2015-09-15 12:07:35 +02:00
Chimo
96a7bf2b90
atom: <link> urls should be attr, not content
...
Some activities (ex: repeats and follows) have <link>s like this:
<link rel="alternate" type="text/html">http://example.org </link>
This commit changes them to:
<link rel="alternate" type="text/html" href="http://example.org "/>
2015-09-14 21:34:56 -04:00
Mikael Nordfeldth
604ed1fd9a
Prepare for ActivityModerationPlugin
2015-09-10 15:55:37 +02:00
Mikael Nordfeldth
9ad9b91efb
Call it compareVerbs when comparing verbs
2015-09-10 15:27:40 +02:00
Mikael Nordfeldth
404d5781fc
Annoying debug messages that were just meant to remind
2015-09-09 17:48:06 +02:00
Mikael Nordfeldth
52de57e2f6
Let's handle notice dataobjects instead, despite fetching twice from db
...
Actually the original object should be fixed here, but we'll handle the FIXME's later.
2015-09-09 17:03:52 +02:00
Mikael Nordfeldth
4b83d62750
Split classes into their own files
2015-09-09 16:30:14 +02:00
Mikael Nordfeldth
a541533e04
Use Profile objects in Subscription::saveNew
2015-09-06 02:07:52 +02:00
Mikael Nordfeldth
917a547f91
Subscription::saveNew is a static function
2015-09-06 02:01:39 +02:00
Mikael Nordfeldth
d448275713
Merge branch 'nightly'
2015-09-06 01:54:00 +02:00
Mikael Nordfeldth
4354ce21d1
introducing html_sprintf for easier sprintf'ing with htmlspecialchars
2015-09-06 01:53:11 +02:00
Chimo
dc5dd69f2e
Add default icon to OAuth apps
...
When MySQL runs in strict mode, it doesn't seem possible to add a new OAuth app.
This is because:
* The 'icon' field has no defaults and also has NOT NULL constraint.
* GS uploads/sets the icon[1] (if provided) after the SQL insert[2]
The easiest fix seemed to be to provide a default icon value.
This change sets the default to the "blue peg" default avatar from the base theme.
[1]
7f30e61402/actions/newapplication.php (L176)
[2]
7f30e61402/actions/newapplication.php (L186)
2015-09-05 17:02:17 -04:00
Mikael Nordfeldth
ea75e1c29c
Notice_location class in db/core.php
2015-09-04 23:12:23 +02:00
Mikael Nordfeldth
7f30e61402
Oops, forgot Notice_location PHP file
2015-09-04 22:30:33 +02:00
Mikael Nordfeldth
3c86542a40
Move notice location data to Notice_location
...
Will probably take a _long_ time to do scripts/upgrade.php but don't
worry, it can be aborted and resumed.
2015-09-04 22:25:11 +02:00
Mikael Nordfeldth
476197569f
sys_get_temp_dir was added in PHP 5 >= 5.2.1
...
Our requirements are higher than that, so let's just remove the workaround
2015-09-04 22:24:01 +02:00
Mikael Nordfeldth
1e07f8c045
Incorrect use of DataObject type matching after ->find()
2015-09-04 20:35:11 +02:00
mmn
57c87088d4
Merge branch 'configure-docs' into 'nightly'
...
Add a few missing 'attachments' config options
show_thumbs
show_html
filename_base
See merge request !27
2015-09-03 16:11:28 +00:00
mmn
f4b0756e70
Merge branch 'nightly' into 'nightly'
...
Adding ChooseTheme plugin into the plugin repository
This merge request propose the plugin ChooseTheme as a part of the plugin repository for GNU social.
See merge request !9
2015-09-03 16:11:04 +00:00
mmn
a597b28001
Merge branch 'nginx-sample' into 'nightly'
...
Add nginx sample configuration
See merge request !23
2015-09-03 16:10:23 +00:00
mmn
5f74ec6782
Merge branch 'webinstaller-faq-link' into 'nightly'
...
Fix broken link to FAQ in web installer
See merge request !24
2015-09-03 16:09:38 +00:00
Mikael Nordfeldth
e06553b15b
Suggested edits by hannes2peer
2015-09-03 18:04:13 +02:00
Mikael Nordfeldth
84a65c7189
Include PHP libraries from system if not packaged and they are installed.
...
Thanks to:
"Bhuvan Krishna" <bhuvan@swecha.net >
"Sunil Mohan" <sunil@medhas.org >
2015-09-03 17:56:11 +02:00
abjectio
91c1ab6017
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2015-08-18 22:55:28 +02:00
Mikael Nordfeldth
c77bce12e5
Mf2 extlib update from https://github.com/indieweb/php-mf2/
2015-08-15 11:48:39 +02:00
Hannes Mannerheim
76004660e9
make it possible to erase fields in the profile via the api
2015-08-11 22:18:57 +02:00
Mikael Nordfeldth
c1e6e4e65b
OpenID extlib updated: Fixes CVE-2014-8150
2015-08-02 13:41:57 +02:00
Mikael Nordfeldth
b434243416
OpenID extlib updated: Fixes CVE-2014-8150
2015-08-02 13:39:38 +02:00
chimo
60e7dc1e39
Add a few missing 'attachments' config options
...
show_thumbs
show_html
filename_base
2015-08-01 09:24:05 -04:00
aroquen
de1d49865c
Add some bottom margin to space profile items
2015-07-26 19:10:01 +02:00
aroquen
cd6ad8571f
Make group lists look like profile ones in neo-quitter theme
2015-07-26 16:10:34 +02:00
aroquen
86ed4ac603
This margin is not needed anymore
2015-07-26 15:22:11 +02:00
aroquen
8056aec93e
Remove bullets from user's groups list
2015-07-26 12:39:49 +02:00
aroquen
dc9342f184
Group location on a new line as in profile lists
2015-07-26 12:39:48 +02:00
aroquen
31bcf8cfa2
Show full name close to nickname in subscribers list. For consistency with groups list
2015-07-26 12:39:48 +02:00
aroquen
a416abb940
Beautify (a bit) groups list
...
* Reduce font size to fit and look better
* Group nickname is bold
* Add @ prefix to location
2015-07-26 12:39:47 +02:00
aroquen
7b04ee6a9b
Align location label (fixes profile and group directory display)
2015-07-26 12:39:31 +02:00
aroquen
a04b1cda45
Drop dead variable
2015-07-26 11:10:57 +02:00
aroquen
b0abce9bc8
Page notice message as instructions class
2015-07-26 11:10:30 +02:00
aroquen
c6f58d432c
Improve display of user's groups page.
...
* Show page notice as for subscriptions
* Show instructions when user has no groups
* Add explanation of remote groups and link to skilledtest wiki
2015-07-25 21:38:38 +02:00
Chimo
abde7a2682
Fix broken link to FAQ in web installer
2015-07-25 10:36:31 -04:00
Chimo
05b814ce68
Add nginx sample configuration
2015-07-25 09:39:55 -04:00
aroquen
ad49158fb5
Show page title in user's profile page
2015-07-25 14:45:45 +02:00
Mikael Nordfeldth
266b032b17
UsergroupbyidAction now extends ManagedAction
2015-07-21 02:32:17 +02:00
Mikael Nordfeldth
7ce32619cc
Missing getTarget function in targetedrss10action.php
2015-07-21 02:17:34 +02:00
Mikael Nordfeldth
5b09a150bc
Increased debugging and fixing conversation stitching for saveActivity
2015-07-18 19:19:16 +02:00
Mikael Nordfeldth
e0084a6fdf
Exception handling regarding Foreign_link
2015-07-18 11:39:34 +02:00
Mikael Nordfeldth
b609a3610f
Some missed exception throwing since fixing Foreign_link and Foreign_user
2015-07-18 11:04:35 +02:00
Mikael Nordfeldth
6f62adedfc
Infinite loop on CLI initiated profile deletion for local users
...
profile deleting user deleting profile deleting user...
2015-07-18 02:16:52 +02:00
Mikael Nordfeldth
9fdf6474f8
TwitterBridge working again (for signin and posting to Twitter at least)
...
Now we just need to make it include the newname suggestion if the form fails
(for example forgetting to check the license checkbox or so).
2015-07-18 02:16:15 +02:00
Mikael Nordfeldth
beba2a25d0
Don't retry unhandled transports in OpportunisticQM
...
It'd continue trying xmpp transports forever, for example...
2015-07-18 01:09:50 +02:00
Mikael Nordfeldth
e10d081a56
TwitterBridge is closer to working again
2015-07-17 21:03:37 +02:00
Mikael Nordfeldth
6cd7a4a400
TwitterBridge messing about, Twitter OAuth requires Authorization header now?
...
https://dev.twitter.com/oauth/reference/post/oauth/request_token says that
the request should be a GET with a specific HTTP header instead of query
string parameters for OAuth?
2015-07-17 18:54:39 +02:00
Mikael Nordfeldth
5933056a5b
Twittersettings now works better as Profilesettings extension
2015-07-17 17:50:43 +02:00
Mikael Nordfeldth
d6d06c8cbb
SubMirror now works properly as extended from FormAction
2015-07-17 17:09:36 +02:00
Mikael Nordfeldth
712a6d49d0
Poll settings adapted to FormAction
2015-07-17 16:19:02 +02:00
Mikael Nordfeldth
da168674f9
OpenID settings aligned with FormAction
2015-07-17 16:08:22 +02:00
Mikael Nordfeldth
8d2504a809
Early return in FacebookBridge settings action
2015-07-17 15:27:47 +02:00
Mikael Nordfeldth
be0c10e8f6
Facebooksettings adapted to FormAction
2015-07-17 15:24:37 +02:00
Mikael Nordfeldth
992fe6896f
Urlsettings now adapted to FormAction
2015-07-17 15:16:45 +02:00
Mikael Nordfeldth
8d516d7f08
Don't allow imports by default until it works well on large instances.
2015-07-17 14:40:09 +02:00
Mikael Nordfeldth
2dd979d3f8
SMS Settings now better adapted to FormAction
2015-07-17 14:29:07 +02:00
Mikael Nordfeldth
a093dea38c
ExtendedProfile is not something we want by default.
2015-07-17 12:46:24 +02:00
Mikael Nordfeldth
9045575e62
ExtendedProfile now works better as extended ProfilesettingsAction
2015-07-17 12:46:09 +02:00
Mikael Nordfeldth
9f82da07f1
ProfilesettingsAction and related stuff modernised
2015-07-17 12:20:11 +02:00
Mikael Nordfeldth
53e820b466
Maximum character limit with utf8mb4 is 191 in varchar
2015-07-17 11:22:25 +02:00
Mikael Nordfeldth
cfaaf3c13c
PasswordsettingsAction aligned with FormAction
...
Also made some changes in the password "munging" function call
common_munge_password to accept a profile instead of user ID (which
was only there because stoneage StatusNet used the ID to generate a
not-very-random salt, but nowadays we primarily use AuthCrypt plugin).
2015-07-17 01:47:43 +02:00
Mikael Nordfeldth
47ef917f62
oldschool settings adapted to FormAction
...
TODO: Rename this "Layout", "Display" or something, since it might
actually be interesting to have non-threaded views for some users.
2015-07-17 01:18:28 +02:00
Mikael Nordfeldth
a6e299a2fc
OAuth stuff adapted for FormAction
...
TODO: Break OAuth out into a plugin.
2015-07-17 01:07:19 +02:00
Mikael Nordfeldth
ba5a43f2f9
If XMLOutputter $output arg is null, use php://output
...
Since pushing a null value to the argument actually sets it to null
and not the default fallback (previously $output='php://output');
2015-07-16 23:58:04 +02:00
Mikael Nordfeldth
f1d9d8a6ed
ImSettings adapted to FormAction inheritance
...
TODO: Get separate Form classes and move User_im_prefs to Profile_prefs
2015-07-16 21:18:50 +02:00
Mikael Nordfeldth
647171e089
EmailSettingsAction adapted to FormAction
...
TODO: EmailSettingsForm as a separate class would be good!
2015-07-16 21:17:22 +02:00
Mikael Nordfeldth
fd2efbc6f8
AvatarSettings more aligned to FormAction
...
TODO: Make classes called AvatarCropForm and AvatarUploadForm
2015-07-16 19:21:12 +02:00
Mikael Nordfeldth
2d44400cfc
SettingsAction now extends FormAction (and thus ManagedAction)
2015-07-16 19:03:53 +02:00
Mikael Nordfeldth
673bef2fda
OAuth widgets separated into their own files
2015-07-16 18:52:43 +02:00
Mikael Nordfeldth
94d54ebc29
Function declarations to match parent class
2015-07-16 18:45:59 +02:00
Mikael Nordfeldth
44dc00a58c
Non-replies cannot harvest parent notice nicknames
...
A feature we use of parent notices is that if you use the same @user
as the parent notice, the same @user will be notified, regardless if
there might be @user@site.com as well as @user@example.com and you're
subscribed to just one of them (or both, or none of them!).
But this threw an exception since we tested this on new notice threads.
2015-07-16 12:53:10 +02:00
Mikael Nordfeldth
cd23c78800
Less redundant code.
2015-07-15 19:21:21 +02:00
Mikael Nordfeldth
01a4ab30dc
Removing MicroID as well as simplifying profileaction
...
sorry, forgot to commit in between
2015-07-14 16:52:20 +02:00
abjectio
c10a4cf6d2
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2015-07-12 10:40:24 +02:00
Mikael Nordfeldth
e868ac41cd
userrss action didn't call parent preparation method
2015-07-11 19:48:18 +02:00
Mikael Nordfeldth
c5a5eaf288
Do we update feeduri and salmonuri for Ostatus_profile now?
...
When changing from HTTP to HTTPS, following up on commit
59763ceecb
where http to https Ostatus_profile URI changing was first introduced.
2015-07-11 19:46:01 +02:00
Mikael Nordfeldth
ac98600640
More RESTish URL (/notice/:notice/delete) for notice delete
...
Also returns to 'top' now after notice deletion.
2015-07-11 11:26:48 +02:00
Mikael Nordfeldth
7d524307d2
DeletenoticeForm is its own class now
2015-07-11 11:26:44 +02:00
Mikael Nordfeldth
9101a1db3d
No limit argument to Rss10Action->getNotices() (use $this->limit)
2015-07-11 11:09:16 +02:00
Mikael Nordfeldth
2a1be57470
Merge branch 'nightly' into deletenotice_form_fix
2015-07-11 10:49:41 +02:00
Mikael Nordfeldth
e439ace944
bump alpha number to ease remote debugging help
2015-07-11 01:00:04 +02:00
Mikael Nordfeldth
fae79b5812
Forgot to push TargetedRss10Action
2015-07-11 00:32:05 +02:00
Mikael Nordfeldth
bb29d18017
ShowfavoritesAction now extends ShowstreamAction
2015-07-11 00:28:32 +02:00
Mikael Nordfeldth
5929b629e5
define Subscription_queue::exists as static
2015-07-11 00:08:23 +02:00
Mikael Nordfeldth
76396041e2
$notices and $notice is not the same, silly!
2015-07-10 23:30:59 +02:00
Mikael Nordfeldth
64fbc93217
ApiAction::dateTwitter was called statically from a plugin
2015-07-10 23:30:17 +02:00
Mikael Nordfeldth
24b1e26406
MagicEnvelope called DOMDocument::loadXML statically
...
but apparently we shouldn't do this, despite recommended on https://secure.php.net/manual/en/domdocument.loadxml.php
2015-07-10 23:24:50 +02:00
Mikael Nordfeldth
961031bc28
Cleaning up Directory plugin lists
2015-07-10 23:19:54 +02:00
Mikael Nordfeldth
ad453785f0
FoafAction now a ManagedAction
2015-07-10 23:10:24 +02:00
Mikael Nordfeldth
08bd4fa6a8
ShowstreamAction no longer has public ->profile
2015-07-10 23:09:44 +02:00
Mikael Nordfeldth
3900a739b9
Forgotten migrations of ->profile and ->user to ->getTarget()
...
GalleryAction extends ProfileAction which no longer uses ->profile and ->user
2015-07-10 23:05:02 +02:00
Mikael Nordfeldth
55b2d124bc
The 'target' is an argument to common_local_url not the target profile
2015-07-10 22:49:38 +02:00
Mikael Nordfeldth
a964ea61cd
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2015-07-10 16:03:41 +02:00
mmn
c037f04d17
Merge branch 'jquery-cookie-undefined' into 'nightly'
...
Updates jquery.cookie usage to match changes from v1.4.0
`$.cookie('name')` returns `undefined` instead of `null` when cookie is not present.
This fixes a problem where the browser was never asking for location,
and the JSON.parse call was throwing an exception when the geolocation
cookie wasn't present.
Deleting a cookie should use `$.removeCookie('name')` instead of `$.cookie('name', null)`.
[Reference](7f88a4e631/CHANGELOG.md (140) ).
See merge request !20
2015-07-10 14:03:30 +00:00
Mikael Nordfeldth
7c4e550e31
Merge branch 'master' into nightly
2015-07-10 16:02:55 +02:00
mmn
204f6bb503
Merge branch 'permissions-fix' into 'master'
...
Permissions fix
During Debian packaging I noticed that executable permissions on several files are incorrect. In the fist case files such as .gitignore, .png, .ico were wrongly set as executable. In the second case, files that are meant to be running on the command line such as maintenance scripts starting with "#!/usr/bin/env php" do not have executable permissions. These files were identified by lintian automatic checking program. This merge request aims to fix the problem.
See merge request !21
2015-07-10 14:01:49 +00:00
Mikael Nordfeldth
6c4985476e
Merge branch 'nightly' into deletenotice_form_fix
2015-07-10 13:54:06 +02:00
Mikael Nordfeldth
9a92b58057
ShowstreamAction tidying up
...
Lots of these changes mean that we're requiring certain values to
either by typed properly or return the expected value. If it doesn't
there should be a fatal exception thrown which we can followup in the
logs and won't go silently suppressed.
2015-07-10 13:44:47 +02:00
Mikael Nordfeldth
f8877e015b
static definition of User::getByNickname
2015-07-10 12:59:19 +02:00
Mikael Nordfeldth
50c297bcbe
ShowstreamAction fixes so it's not as horrible
2015-07-10 12:34:06 +02:00
Mikael Nordfeldth
6a36121a56
Spiff up the PersonalTagCloudSection class
...
missing a fix in actions/showstream.php for the switched position
of arguments in the constructor
2015-07-10 12:23:55 +02:00
Mikael Nordfeldth
f9d82a6ac5
Easy comparison of two Profile objects
2015-07-10 12:19:55 +02:00
Mikael Nordfeldth
e567406c9f
RedirecturlAction now extends ManagedAction
2015-07-10 12:08:33 +02:00
Bhuvan Krishna
1ab4c9998a
Add executable permission to script missing it
2015-07-10 14:46:08 +05:30
Bhuvan Krishna
d6924f7680
Remove executable permissions where unnecessary
2015-07-10 14:36:34 +05:30
Mikael Nordfeldth
76432b958b
delete notice form fix
2015-07-10 00:52:22 +02:00
Mikael Nordfeldth
e46b2803a7
Introducing TargetedRss10Action for simplifying RSS 1.0
2015-07-10 00:28:36 +02:00
Mikael Nordfeldth
1cbf2510e7
/:nickname/all/rss had to be before /:tagger/all/:tag
...
...though this makes it impossible to get a list called "rss"
so FIXME, the RSS 1.0 actions should be in the API or something
2015-07-10 00:27:26 +02:00
Mikael Nordfeldth
8cc85f684b
Need to supply data to NoSuchUserException
2015-07-10 00:08:09 +02:00
Mikael Nordfeldth
b5b7a27f9b
Rss10Action migrated to ManagedAction
2015-07-09 23:29:30 +02:00
Mikael Nordfeldth
06f60b57c1
StartpageAction essentially duplicated TopAction
2015-07-09 23:01:50 +02:00
Mikael Nordfeldth
37e8b027f9
PEAR's Mail_mimeDecode updated
2015-07-09 22:29:23 +02:00
Mikael Nordfeldth
ed248f7f5a
No static calls (PEAR sucks ass)
2015-07-09 22:26:03 +02:00
Mikael Nordfeldth
90565cc44d
searchsubmenu item() function definition
2015-07-09 22:19:19 +02:00
Mikael Nordfeldth
9fb3ea3ce6
static function definitions and minor simplifying
2015-07-09 22:16:14 +02:00
Mikael Nordfeldth
d63bca9d3c
Rss10Action now in an autodetected file.
2015-07-09 14:22:22 +02:00
Mikael Nordfeldth
9b8ac2d404
CSS can handle alternating row colouring now
2015-07-09 14:10:38 +02:00
Mikael Nordfeldth
65f1f74f2b
Type controlling in lib/atomnoticefeed.php
2015-07-09 13:56:02 +02:00
Mikael Nordfeldth
43cec8eaac
API actions are not ManagedAction yet
2015-07-09 13:46:03 +02:00
Mikael Nordfeldth
2103075ffa
Delete notice script added. Give an ID or URI.
2015-07-08 12:30:21 +02:00
Mikael Nordfeldth
f939485b52
Gravatar relies on closed source 3rd party
2015-07-08 07:57:27 +02:00
Mikael Nordfeldth
77957372ab
File_redirection static fixes and simplifying
2015-07-07 20:16:05 +02:00
Mikael Nordfeldth
33dc06ae21
handle function declaration to match parent
2015-07-07 20:02:41 +02:00
Mikael Nordfeldth
d0458b824a
File_redirection minor coding layout fix
2015-07-07 19:59:43 +02:00
Mikael Nordfeldth
45ee2060fa
File_redirection is called statically
2015-07-07 19:48:18 +02:00
Mikael Nordfeldth
6919dda958
RobotstxtAction migrated to ManagedAction
2015-07-07 19:45:01 +02:00
Mikael Nordfeldth
acdcb2ad8d
prepare and handle function to match parents
2015-07-07 19:34:42 +02:00
Mikael Nordfeldth
edef6f929a
Don't statically call Validate functions
2015-07-07 19:30:14 +02:00
Mikael Nordfeldth
62c6ed58ba
DirectMessagePlugin actions modernified
2015-07-07 19:18:45 +02:00
Mikael Nordfeldth
ed3022adc1
Janrain OpenID extlib updated
...
From their tree on a4090d0b30f850044413630333341cd327cbb55a
Source: https://github.com/openid/php-openid
2015-07-05 23:07:41 +02:00
Mikael Nordfeldth
3b6a424c9f
Mismatching function declarations.
2015-07-04 19:51:36 +02:00
Mikael Nordfeldth
9054bb69e9
I had some inheritance the wrong way around.
2015-07-04 19:48:35 +02:00
Mikael Nordfeldth
5424c82423
Forgot NoticestreamAction, thanks roland.
2015-07-04 00:02:05 +02:00
Mikael Nordfeldth
3f3482f017
Stronger typing and fixes in RequireValidatedEmail
2015-07-03 10:17:15 +02:00
Mikael Nordfeldth
d5a24da167
only variables can be sent by reference (strict standards)
2015-06-25 20:13:27 +02:00
Mikael Nordfeldth
030b570051
non-static method was called statically, now defined static
2015-06-23 13:24:19 +02:00
Mikael Nordfeldth
3a74f49182
stricter typing in GroupsNav menu widget
2015-06-23 12:56:19 +02:00
Mikael Nordfeldth
748bd825e7
SelftagWidget had mismatching url() definition
2015-06-23 12:37:00 +02:00
Mikael Nordfeldth
e6507a0f18
FeedList widget had mismatching show() definition
2015-06-23 12:26:44 +02:00
Mikael Nordfeldth
1864a9de38
Accessibility fix, make yes button more explicit
2015-06-22 23:40:51 +02:00
Chimo
a25d952ef9
$.cookie('n', null) -> $.removeCookie as of 1.4.0
2015-06-20 19:39:12 -04:00
Chimo
9e1d4bfbf0
jquery-cookie returns undefined as of 1.4.0
...
when a cookie isn't set.
This fixes a problem where the browser was never asking for location,
and the JSON.parse call was throwing an exception when the geolocation cookie wasn't
present.
2015-06-20 19:38:58 -04:00
Mikael Nordfeldth
fde3b99e8e
Less redundant code, please
2015-06-21 01:37:29 +02:00
mmn
29620619b5
Merge branch 'plugins-documentation' into 'nightly'
...
Plugins documentation
* Bring content from https://web.archive.org/web/20140821102047/http://status.net/wiki/HOWTO_Make_a_Plugin
* Point link on Plugins Admin Panel page to plugins/README.md ( Ref #53 )
* Add link to "Community Plugins"
See merge request !19
2015-06-20 22:49:31 +00:00
mmn
46cf5aa2a4
Merge branch 'remove_broken_plugins_from_default' into 'nightly'
...
Drop QnA from default plugins
Since it doesn't work (at least at the moment) it shouldn't be proposed as default plugin
See merge request !15
2015-06-20 22:48:49 +00:00
mmn
ee9176f20d
Merge branch 'drop_corporate_text' into 'nightly'
...
Drop corporate text plus minor rewording
Following [this discussion](https://gnusocial.no/conversation/190441#notice-190441 ) I only fixed corporate-only occurrences. I suggest People instead of User directory. Moreover I fixed a minor inconsistency (Trends should be preferred to Trending topics).
The full locale folder should be fixed once we have digitaldreamer's feedback. But we can at least start from this.
See merge request !16
2015-06-20 22:48:31 +00:00
mmn
1d11153396
Merge branch 'character_count' into 'nightly'
...
Fix #31 character count floats in replies
See merge request !17
2015-06-20 22:47:22 +00:00
Mikael Nordfeldth
7c373edf4d
implement javascript callbacks (no remove yet)
2015-06-14 23:14:00 +02:00
Mikael Nordfeldth
41fe435553
oops forgot an alert()
2015-06-14 22:04:57 +02:00
Mikael Nordfeldth
01cbe744b6
Move some javascript out to an E (Event) object
2015-06-14 21:57:39 +02:00
chimo
e32cd2dd15
Add link to 'community plugins'
2015-06-14 12:05:54 -04:00
chimo
39462c3a2e
Documentation about plugins
...
* Content in plugins/doc/Plugin_development.md from:
https://web.archive.org/web/20140821102047/http://status.net/wiki/HOWTO_Make_a_Plugin
* Point link on Plugins Admin Panel page to plugins/README.md
2015-06-14 11:59:46 -04:00
abjectio
e9a6d5be51
Removed the full AGPL license file
2015-06-13 11:11:50 +02:00
abjectio
fca53a56b4
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2015-06-13 11:10:10 +02:00
Mikael Nordfeldth
a03249dd99
No reason to have makeRegex protected
2015-06-12 17:15:39 +02:00
abjectio
437dc3d713
Added .pot file and Norwegian translation
2015-06-10 22:11:34 +02:00
abjectio
ea076a8783
Bug in use of gettext/locale string
2015-06-10 22:10:14 +02:00
abjectio
965cd92a72
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2015-06-10 22:09:30 +02:00
aroquen
204ebe607d
Fix #31 character count floats in replies
2015-06-07 22:44:33 +02:00
aroquen
267a49103e
Rewording: trends instead of trending topics for consistency with other occurrences
2015-06-07 22:28:19 +02:00
aroquen
a42d74a238
Rewording: people instead of user directory
2015-06-07 22:27:31 +02:00
aroquen
f9c51c2478
No corporate-only strings in code base anymore
2015-06-07 22:24:14 +02:00
aroquen
776b82e6e8
Drop QnA from default plugins
2015-06-07 14:05:51 +02:00
Mikael Nordfeldth
8a002e98bc
File-related functions not declared static
2015-06-07 10:01:28 +02:00
Mikael Nordfeldth
4fc62a8bf5
Another function not matching parent declaration
2015-06-07 09:26:12 +02:00
abjectio
3bdcdfd114
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2015-06-06 23:32:10 +02:00
mmn
f7769c17b5
Merge branch 'subscribers_as_addressees' into 'nightly'
...
Add subscribers as addressees to toselector
Populate the dropdown recipient menu first with groups, then with followed users. There is no alphabetical sorting (perhaps to be added later?). See this discussion https://gnusocial.no/conversation/190705#notice-190705 . Thanks to @chimo.
Hope it is good now.
See merge request !14
2015-06-06 21:14:50 +00:00
Chimo
76c9971c31
Show nickname if user has oldschool option enabled
2015-06-06 23:07:34 +02:00
aroquen
e46dcc0cc4
Add subscribed users to dropdown menu.
2015-06-06 23:07:13 +02:00
abjectio
9dc8250956
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2015-06-06 22:27:51 +02:00
mmn
3a910d8c8c
Merge branch 'doc-src' into 'nightly'
...
Small updates to doc-src files
* Remove mentions of GTalk since it's been replaced by Hangouts which doesn't do XMPP
* Update URLS, use HTTPS where possible
See merge request !11
2015-06-06 20:27:00 +00:00
mmn
e203271d95
Merge branch 'nightly' into 'nightly'
...
fixed realtime action buttons and marker in base, adjusted settings in neo-quitter
fixed realtime action buttons and marker in base so that all neo themes benefit from it, adjusted settings in neo-quitter
See merge request !12
2015-06-06 20:20:52 +00:00
Mikael Nordfeldth
6267e7a930
Merge branch 'hackfest' into nightly
2015-06-06 22:15:39 +02:00
Mikael Nordfeldth
d76d37340a
Function declarations not matching their parents
2015-06-06 22:14:56 +02:00
Mikael Nordfeldth
871912a00a
Plugins didn't match lib/plugin.php onPluginVersion function definition
...
I ran:
for i in `grep -R onPluginVersion...version plugins/|cut -d: -f1`; do sed -i '{ s/\(onPluginVersion(\)\(\&\$versions\)/\1array \2/ }' $i; done
2015-06-06 22:04:01 +02:00
Mikael Nordfeldth
628e7fa583
ApiOAuthAction functions didn't match parents
2015-06-06 21:57:42 +02:00
Mikael Nordfeldth
15643c802b
EndActionExecute event should only run if the Action is not overridden
2015-06-06 20:13:11 +02:00
Mikael Nordfeldth
814696c202
DB_DataObject delete function calls PEAR::isError directly, ignore E_STRICT
2015-06-06 20:01:03 +02:00
Mikael Nordfeldth
50070c9b0a
GS_DataObject overrides DB_DataObject insert() too
2015-06-06 19:59:01 +02:00
Mikael Nordfeldth
06503cc11b
joinAdd calls DB_DataObject::factory directly so no GS_DataObject override
2015-06-06 19:41:23 +02:00
Mikael Nordfeldth
daaafd86e2
DB_DataObject recommends using ->tableName()
2015-06-06 19:35:10 +02:00
Mikael Nordfeldth
9e52b6f2d1
DB_DataObject v1.11.4 made some functions static (finally!)
2015-06-06 19:30:53 +02:00
Marcus Moeller
fae8e38616
fixed realtime action buttons and marker in base, adjusted settings in neo-quitter
2015-06-06 19:18:20 +02:00
Mikael Nordfeldth
4cba7a4002
DB_DataObject v1.11.4, finally!
2015-06-06 19:13:57 +02:00
Mikael Nordfeldth
9712a92853
MITM the DB_DataObject to avoid PEAR::DB strict standards warnings
2015-06-06 18:29:15 +02:00
abjectio
28eb441812
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2015-06-06 18:15:17 +02:00
Mikael Nordfeldth
3c2a720b21
Found a remnant staticGet call
2015-06-06 17:39:25 +02:00
Mikael Nordfeldth
6478034e92
Diaspora-compatible Salmon slap receival
...
We're not all the way there yet, there is something which seems to bugger
up profile discovery from their end.
2015-06-06 17:14:38 +02:00
Mikael Nordfeldth
faf14197cd
Diaspora doesn't understand our Salmon POST, so send again
2015-06-06 16:57:29 +02:00
Mikael Nordfeldth
b63054cb1d
OStatus update-profile.php script now finds Diaspora salmon URLs
2015-06-06 16:18:22 +02:00
Mikael Nordfeldth
4de125dd84
Moved FeedSubException parent class to own file
2015-06-06 16:02:25 +02:00
Mikael Nordfeldth
268b901048
Maintainer change for Ostatus_profile
2015-06-06 15:58:08 +02:00
Chimo
136c3140c2
doc-src: Update URLs
2015-06-06 09:12:30 -04:00
Chimo
7e90103f21
"im" doc-src: GTalk has been deprecated
2015-06-06 09:10:42 -04:00
Mikael Nordfeldth
d4fc064e44
Include the Diaspora GUID string in our XRD metadata
2015-06-06 14:49:39 +02:00
Mikael Nordfeldth
623a7eee57
Diaspora seeds tend to give the key type in 'type' attribute
2015-06-06 14:46:17 +02:00
Mikael Nordfeldth
57943cad99
Magicsig gets toFingerprint output
...
We give this as a lowercase, sha256 hexadecimal digest of the string:
TYPE + "." + BASE64(modulus as bytes) + "." + BASE64(exponent as bytes)
Where TYPE in all our cases up until now at least are "RSA"
2015-06-06 14:35:48 +02:00
Mikael Nordfeldth
c5f79fd2f3
Magicsig gets toFingerprint function.
2015-06-06 14:33:43 +02:00
Mikael Nordfeldth
e212f2ae77
Moved Diaspora specific metadata to own plugin
2015-06-06 13:49:27 +02:00
mmn
a39f51c044
Merge branch 'tagprofile-ajax-fix' into 'nightly'
...
Only serve tagprofile HTML if we aren't POSTing via ajax
This fixes an issue where POSTing the selftag form in the
profile_block sidebar via AJAX would generate an XML response
containing both the content from doPost() and showPage(),
resulting in invalid XML.
These changes make it so that if we're POSTing via AJAX,
we serve content from doPost(), otherwise we serve showPage()
but never both.
See merge request !8
2015-06-06 10:26:43 +00:00
abjectio
8abf96cfd8
Edited the readme file to be more inline with the core repo
2015-06-06 12:14:50 +02:00
abjectio
b0a598ba7b
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2015-06-06 11:31:18 +02:00
abjectio
e269a3fad9
Added ChooseTheme plugin to the repository
2015-06-06 11:28:34 +02:00
Chimo
47c83f4c49
Only serve tagprofile HTML if we aren't POSTing via ajax
...
This fixes an issue where POSTing the selftag form in the
profile_block sidebar via AJAX would generate an XML response
containing both the content from doPost() and showPage(),
resulting in invalid XML.
These changes make it so that if we're POSTing via AJAX,
we serve content from doPost(), otherwise we serve showPage()
but never both.
2015-06-06 00:22:14 -04:00
mmn
1635d459ec
Merge branch 'threaded_replies_nightly' into 'nightly'
...
Fix threaded replies floating
Following Marcus fixes for neo-quitter, I think the floating of replies should be fixed directly in the base theme. What do you think? This issue affects all derived themes (although sometimes only marginally) see https://gnusocial.no/conversation/126588 .
These commits implement some of Marcus floating fixes directly in base plus the fav, reply icons are better aligned with the permalink and timestamp (notice-options change).
See merge request !7
2015-06-05 22:38:13 +00:00
aroquen
77db161aca
Threaded replies and conversations do not float left
2015-06-06 00:23:54 +02:00
aroquen
b3667c72c7
Align notice-options with timestamp and permalink
2015-06-06 00:23:23 +02:00
mmn
e3b1d401fd
Merge branch 'nightly' into 'nightly'
...
Updated neo-quitter
Updated neo-quitter to match the colors of the default theme
Fixed alignment issues
Changed threaded view to inline in order to make it more readable
See merge request !6
2015-06-05 21:44:49 +00:00
Mikael Nordfeldth
ad7cd155fb
floating elements CSS fix by aroque
2015-06-05 23:44:59 +02:00
Mikael Nordfeldth
882ce56cf4
buttle's local/plugins translation file fix
2015-06-05 23:43:28 +02:00
Mikael Nordfeldth
29e1203609
Merge request for documentation and URLs
2015-06-05 23:16:22 +02:00
mmn
a3011febdf
Merge branch 'nightly' into 'nightly'
...
Fixing broken links during end of installation #26 - https://git.gnu.io/gnu/gnu-social/issues/26
See merge request !2
2015-06-05 21:10:53 +00:00
Mikael Nordfeldth
6e28524647
Extensions of GalleryActions enabled again (nickname check)
2015-06-05 21:50:00 +02:00
Mikael Nordfeldth
c26e08d6a6
some more extensions of ShowstreamAction broke in last commit
2015-06-05 21:49:34 +02:00
Mikael Nordfeldth
9376a6d75a
ModPlus plugin now links to remote profiles with UserbyidAction
2015-06-05 21:30:50 +02:00
Mikael Nordfeldth
8ad81a6aa3
Allow showing profiles with UserbyidAction (/user/:id)
2015-06-05 21:24:41 +02:00
abjectio
c00b2ecc4b
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2015-06-05 20:57:28 +02:00
root
dd2fb27316
improved favocin
2015-06-05 19:12:17 +02:00
Marcus Moeller
bc7eb792f4
updated favicon color
2015-06-05 17:08:35 +02:00
Marcus Moeller
abfa052861
use none instead of unset
2015-06-05 16:54:55 +02:00
Marcus Moeller
dbfc8092d7
even display threads inline if no user is logged in
2015-06-05 16:47:41 +02:00
Marcus Moeller
6137d301be
set threaded view to inline to make it more readable
2015-06-05 16:37:34 +02:00
Marcus Moeller
af87552e04
updated neo-quitter colours to match the default theme, fixed some alignment and margin issues
2015-06-05 16:21:04 +02:00
Mikael Nordfeldth
94f5247f91
$this->client_ip was not always set in AntiBrutePlugin onEndCheckPassword
2015-06-05 15:34:14 +02:00
Mikael Nordfeldth
dee4ca37ab
GROUPS_PER_MINILIST was undefined in profileaction.php
2015-06-05 14:07:03 +02:00
Mikael Nordfeldth
b24d711f55
Network wide feed link would NEVER show!
2015-06-05 14:01:03 +02:00
Mikael Nordfeldth
50f0235654
Oops, don't forget to remove var_dump(...)
2015-06-04 22:34:28 +02:00
Mikael Nordfeldth
cafab14f2b
Modernize File_redirection to use Managed_DataObject functions
2015-06-04 22:33:36 +02:00
Mikael Nordfeldth
63251fb9d0
Modernize File_thumbnail to use Managed_DataObject functions
2015-06-04 22:29:40 +02:00
Mikael Nordfeldth
fc9de94cbd
Modernize Queue_item to use Managed_DataObject functions
2015-06-04 22:27:53 +02:00
Mikael Nordfeldth
f9698598c6
Modernize Profile_prefs to use Managed_DataObject functions
2015-06-04 22:26:31 +02:00
Mikael Nordfeldth
d1afc78124
Modernize File_to_post to use Managed_DataObject functions
2015-06-04 22:22:49 +02:00
Mikael Nordfeldth
ebdd792b6f
getByPK (primary key) lookup for Managed_DataObject instances
2015-06-04 22:17:40 +02:00
Mikael Nordfeldth
ca19a5cd6d
Easier pkeyCols call to get primary key columns
2015-06-04 21:51:56 +02:00
Mikael Nordfeldth
20145092ce
Publish OAuth data in host-meta
2015-06-04 18:54:09 +02:00
Mikael Nordfeldth
5718f812d9
Network public publicgroupnav link would always show
2015-06-04 17:39:23 +02:00
Mikael Nordfeldth
fe6498e7c8
Send objects instead of integers to File_to_post::processNew
2015-06-04 17:36:11 +02:00
Mikael Nordfeldth
5358fb3cce
Use the same cache string in all places for file:notice-ids
2015-06-04 17:02:45 +02:00
Mikael Nordfeldth
9449235765
Remove some clutter from OMB plugin
2015-06-04 01:14:26 +02:00
Mikael Nordfeldth
a4739b0107
Move some last OpenID stuff into the OpenID plugin (XRDS)
2015-06-04 01:08:03 +02:00
Mikael Nordfeldth
bdd15cfe63
don't double the output for some PublicAction->extraHead
2015-06-04 00:56:46 +02:00
Mikael Nordfeldth
26631bf9e6
Show network public feed link in PublicGroupNav
2015-06-04 00:53:35 +02:00
Mikael Nordfeldth
551c69ed56
Extend Networkpublic and Public actions from SitestreamAction
2015-06-04 00:51:07 +02:00
Mikael Nordfeldth
2b2ebfc254
bump version to 1.2.0-alpha1
...
since we fixed the search issue and updated jquery
2015-06-03 22:57:58 +02:00
Mikael Nordfeldth
fd121f371a
case insensitive indexing for content and nick/fullnames (search)
...
This broke when changing the database to utf8mb4 instead of utf8,
since utf8_general_ci wasn't accepted and the engine fell back to
utf8mb4_bin. Now we're back in case insensitive search business!
2015-06-03 22:43:51 +02:00
Mikael Nordfeldth
c5da7306bd
return logic tidied up for command interpretation
2015-06-02 14:25:45 +02:00
Mikael Nordfeldth
2bf0ec719d
initialize command interpretation result to false
2015-06-02 14:17:59 +02:00
Mikael Nordfeldth
7e388e697d
fallback to local URL if reply->getUrl() is missing
...
Remote Activity notices generally don't have a proper HTTP URL associated.
2015-06-02 13:55:13 +02:00
Mikael Nordfeldth
0726dcd06c
Start using NoParentNoticeException more widely
2015-06-02 13:50:52 +02:00
Mikael Nordfeldth
c84b21008e
Notice->getParent code reuse
...
...not entirely sure whether to allow getParent calls on Notice
objects which have not been created, but we'll leave that in for now...
2015-06-02 13:46:23 +02:00
Mikael Nordfeldth
6b9a8b7b19
Reuse code from our classes, don't write own algorithms
2015-06-02 13:45:22 +02:00
Mikael Nordfeldth
e728e2aa81
typing, added typing to some common_* calls in util.php
2015-06-02 13:19:12 +02:00
Mikael Nordfeldth
2096c18e57
use array_key_exists instead of empty to test array key
2015-06-02 13:14:57 +02:00
Mikael Nordfeldth
2cebbead75
Accidentally presented Atom feed as ActivityStreams JSON
2015-06-02 12:58:30 +02:00
Mikael Nordfeldth
a2ddcc124f
No redirect follow on HEAD request (bump to PHP5.5 minimum requirement)
...
We're using the try-catch-finally clause where "finally" wasn't introduced
until PHP 5.5, so our minimum requirement for GNU social is bumped to that.
2015-06-02 11:07:11 +02:00
Mikael Nordfeldth
82f9b6908c
Fake recovery by email address, to hide registrants on the site
2015-05-30 23:29:58 +02:00
Mikael Nordfeldth
731d283159
Password recovery logic cleaned up
2015-05-30 23:18:17 +02:00
abjectio
1d85fd35a2
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social
2015-05-30 17:21:52 +02:00
Mikael Nordfeldth
b4b8cb57b3
slugify console.php prompt name
...
since PHP thought it was fun to crash on Quitter España and I
couldn't be bothered messing with readline
2015-05-30 16:40:00 +02:00
Mikael Nordfeldth
3294d704a4
scripts/nukefile.php for blasting crap from the server
...
Deletes notices and the locally stored file based on File id, as
you may want to just get rid of shit sometimes.
2015-05-30 15:41:04 +02:00
Mikael Nordfeldth
f926e27a65
urlhash will _be_ NULL on update, so NOT NULL won't work
2015-05-27 22:37:20 +02:00
Mikael Nordfeldth
c31d6608a8
remove _all_ file URLs not just the duplicates
2015-05-27 21:54:51 +02:00
Mikael Nordfeldth
cd0b70dbc1
upgrade fix for file URLs longer than 191 chars
2015-05-27 21:31:29 +02:00
Mikael Nordfeldth
0e6b80ded3
more debugging info on failed schema.php runSqlSet
2015-05-27 20:21:05 +02:00
abjectio
19e7cf5f4a
Merge branch 'master' of git.gnu.io:gnu/gnu-social
2015-05-26 22:27:27 +02:00
abjectio
0200b1d784
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
2015-05-26 22:25:49 +02:00
Mikael Nordfeldth
6b717a6a69
Throw exception if Local_group has no corresponding User_group
2015-05-26 13:14:26 +02:00
Mikael Nordfeldth
925aacec1a
Throw exception when a Conversation is not found
2015-05-26 13:11:08 +02:00
Mikael Nordfeldth
bb8d377b91
Redirect to group URL for /nickname pattern
2015-05-26 13:10:37 +02:00
aroquen
f7176e7aef
Textarea resizes only vertically.
2015-05-25 00:31:55 +02:00
buttle
ef0385a25c
fix for ./local/plugins/* translation files
...
translations for 3rd party plugins were not being detected
2015-05-21 09:35:52 +02:00
abjectio
5675f328b6
Fixing broken links during end of installation #26 - https://git.gnu.io/gnu/gnu-social/issues/26
2015-05-20 00:02:19 +02:00
abjectio
63ca11fc7d
Changed URLs in README to reflect new host git.gnu.io
2015-05-19 00:00:22 +02:00
Mikael Nordfeldth
4a6f509aa5
More automated htaccess.sample
2015-05-10 19:41:36 +02:00
Mikael Nordfeldth
d010c5a581
magnet URL linkify support
2015-05-09 15:54:09 +02:00
Mikael Nordfeldth
e1822c2b66
schemacheck hint in newly installed config.php
2015-05-03 23:07:31 +02:00
Mikael Nordfeldth
cd42ee7e85
Allow adding preload token to HSTS header
...
Use by adding this to config.php:
addPlugin('StrictTransportSecurity', array('preloadToken'=>true));
2015-05-03 23:05:47 +02:00
Mikael Nordfeldth
6d72800098
StrictTransportSecurity syntax fix
2015-05-03 22:50:44 +02:00
Mikael Nordfeldth
2b58d6b774
Merge branch 'quitagram' into nightly
...
Fixes that make quitagram work better amongst other things.
2015-04-22 22:17:50 +02:00
Mikael Nordfeldth
7e2caa0bb1
Make it easier to hide attachments list header
2015-04-22 22:13:55 +02:00
Mikael Nordfeldth
51ecd6be15
Fix some ProfileAction stuff, add function profileActionPreparation
...
Split up files with multiple classes to multiple files for autoload, sorry
for baking this into this commit.
2015-04-22 21:22:38 +02:00
Mikael Nordfeldth
7601e10b6a
getFullname function on Profile class
...
No need to fix it for User since we shouldn't use that mostly.
2015-04-22 20:57:05 +02:00
Mikael Nordfeldth
4210096a6f
MobileProfile plugin cleanup
2015-04-22 19:50:56 +02:00
Mikael Nordfeldth
f642da201d
Easier to modify DTD for HTMLOutputter
2015-04-22 19:44:58 +02:00
Mikael Nordfeldth
0a0455b8d2
minor coding fixes
2015-04-22 18:41:54 +02:00
Mikael Nordfeldth
529b2f6613
deleteuser script changed to deleteprofile
...
Delete remote profiles by providing their ID if known, or you can
provide their profile URI with --uri=https://...
Useful for cleaning up old, long gone and no longer desired profiles
and their notices.
2015-04-21 23:47:55 +02:00
Mikael Nordfeldth
f9f7c46751
Better typing in lib/framework.php
2015-04-20 00:26:16 +02:00
Mikael Nordfeldth
8a119dc970
We already throw exceptions for PEAR errors
2015-04-20 00:26:00 +02:00
Mikael Nordfeldth
b75e88f65f
Get better PEAR:DB error logging (debuginfo included)
2015-04-20 00:02:13 +02:00
Mikael Nordfeldth
1194c47c5d
ksort on commands array to avoid converting to numerical array
2015-04-19 21:12:26 +02:00
Mikael Nordfeldth
a55d1df585
Clearer warning message on non-existing file
2015-04-16 00:22:09 +02:00
Mikael Nordfeldth
0337a7b866
file_redirection duplicates are removed too in maintenance script
2015-04-15 23:56:23 +02:00
Mikael Nordfeldth
5f1e9e80c2
remove duplicate file URLs script
2015-04-15 23:26:24 +02:00
Mikael Nordfeldth
c5715bc756
File_to_post indexing and cleaning preparations
2015-04-15 23:25:12 +02:00
Mikael Nordfeldth
e4a17fedc6
Translation contained bad HTML
2015-04-14 22:01:22 +02:00
Mikael Nordfeldth
ee96a08700
latest php-gettext from https://code.launchpad.net/~danilo/php-gettext/
2015-04-14 21:40:09 +02:00
Mikael Nordfeldth
4526c3f712
If /var/run was unwritable stopdaemons did not find pid file
2015-04-13 21:51:35 +02:00
Mikael Nordfeldth
eefef44378
filename is never used for indexing so let's make it text
...
varchar is pretty limited so let's avoid it if we can
2015-04-10 22:16:44 +02:00
Mikael Nordfeldth
d7d96806a4
removed unused config setting
2015-04-10 13:15:12 +02:00
Mikael Nordfeldth
5e834e8119
We're logging this already elsewhere
2015-04-09 12:27:04 +02:00
Mikael Nordfeldth
cbabab273f
ImPlugin classes generally require background daemons in CLI
...
If someone designs an ImPlugin which _doesn't_ require the queues to be
handled in background daemons then they can set the requires_cli property
to false in their class.
2015-04-09 12:17:31 +02:00
Mikael Nordfeldth
0bd16b521c
OpportunisticQM shouldn't try to handle what it can't find
2015-04-09 12:15:34 +02:00
Mikael Nordfeldth
07d92acfd0
Fix "unique notice form ID" code for reply forms
2015-04-06 17:35:29 +02:00
Mikael Nordfeldth
ef1f17fc2a
Don't use <object> for application/ogg
...
...this was actually because it would autoplay in Iceweasel/Firefox
despite all parameters for autoplay/autostart being set to false or 0.
2015-04-05 21:35:54 +02:00
Mikael Nordfeldth
5081477e95
enclosures in Atom were not included
2015-04-05 20:24:17 +02:00
Mikael Nordfeldth
f094918cf6
Revert "Inverse logic error in OembedPlugin"
...
This reverts commit 9ab996d9e6 .
2015-04-05 15:44:04 +02:00
Mikael Nordfeldth
c94d9994d8
Merge branch 'nightly'
...
Conflicts:
INSTALL
2015-04-05 15:35:54 +02:00
Mikael Nordfeldth
f6432fdf48
File_thumbnail->getUrl now gives Attachment_thumbnail action URL
...
That in turn redirects to the statically stored file.
2015-04-03 21:21:39 +02:00
Mikael Nordfeldth
4fc4f91b9e
Allow oEmbed data from all sites by default
2015-04-03 21:00:19 +02:00
Mikael Nordfeldth
9ab996d9e6
Inverse logic error in OembedPlugin
2015-04-03 20:59:56 +02:00
Mikael Nordfeldth
3cf5fe8795
bad URL is a clientError
2015-04-03 20:58:12 +02:00
Mikael Nordfeldth
94d3f50aee
oEmbed Action logic simplified (early return)
2015-04-03 20:47:08 +02:00
Mikael Nordfeldth
3dc30b6b8f
oEmbed helper never finished because of "break 2;"
2015-04-03 20:11:55 +02:00
Mikael Nordfeldth
8439efe77d
Filter out img, video and audio tags in notice HTML
...
Because we don't want to auto-fetch items from a remote server. Such
items should be delivered as attachment metadata and portrayed in the
way the local instance chooses.
Choices for portrayal are either simply nullifying this and embedding
the data, linking the file remotely requiring a manual click or maybe
use remote oEmbed data etc. to download files locally so no remote
requests have to be made.
2015-03-15 14:35:29 +01:00
Mikael Nordfeldth
a1098fa153
Marcus Moeller fixed some layout bugs I introduced
2015-03-15 14:22:36 +01:00
Mikael Nordfeldth
0b81fbd590
imitate ->boolean with $def=false
2015-03-14 16:04:03 +01:00
Mikael Nordfeldth
f92fe73d03
php5-intl is required
2015-03-13 21:02:39 +01:00
Mikael Nordfeldth
4f2095ea00
No need to do pkeyGet if not repeated (thanks hannes)
...
Kind of reverts commit d9ed2a0
2015-03-13 09:49:09 +01:00
Mikael Nordfeldth
d9ed2a0fae
repeated did not always find the Notice (deleted?)
2015-03-13 00:19:08 +01:00
Mikael Nordfeldth
4d6b5e70df
Add repeated_id to SimpleStatusArray for Qvitter's benefit
2015-03-13 00:02:48 +01:00
Mikael Nordfeldth
a647a4f6b3
Moving some more repeat stuff into the Share plugin
2015-03-12 22:56:25 +01:00
Mikael Nordfeldth
2821be2bce
Notice properties set in bad order on activityobject saving
2015-03-12 22:17:08 +01:00
Mikael Nordfeldth
0ff11ac978
Share never actually set the repeat_of value
2015-03-12 21:56:18 +01:00
Mikael Nordfeldth
5a235ffbf9
Event fixes for activityhandlerplugin
2015-03-12 21:53:44 +01:00
Mikael Nordfeldth
642f7f850d
repeat actions to Share plugin
2015-03-12 21:46:10 +01:00
Mikael Nordfeldth
1adf5f2863
Merge branch 'nightly' into repeat_as_shareplugin
2015-03-12 20:54:06 +01:00
Mikael Nordfeldth
3ee673ac91
ImageFile->resize now totally replaced with resizeTo
2015-03-12 20:47:07 +01:00
Mikael Nordfeldth
20f8dd6565
Repeats shown in threaded noticelist now handled by plugin
2015-03-12 19:49:20 +01:00
Mikael Nordfeldth
940737a958
Finalize move of 'repeat' Command
2015-03-12 19:22:05 +01:00
Mikael Nordfeldth
1350987e2e
Why did I keep these functions from FavoritePlugin?
2015-03-12 17:07:24 +01:00
Mikael Nordfeldth
dc31a3d7d6
Receiving Share activity fixes
...
Forgot to translate 'self' to 'Ostatus_profile' etc.
2015-03-12 16:59:50 +01:00
Mikael Nordfeldth
dcfcceb6f2
Share plugin now handles showing form in NoticeOptionItems
2015-03-12 16:33:34 +01:00
Mikael Nordfeldth
d24c4f349f
Move share command interpretation to SharePlugin
...
Some fixes to the SharePlugin.php file came along
2015-03-12 15:58:57 +01:00
Mikael Nordfeldth
c85e78ac3c
Remove unnecessary require lines and definitions
...
ProfileNoticeList and ProfileNoticeListItem are in their own files now too
2015-03-12 15:53:59 +01:00
Mikael Nordfeldth
7ddf586da7
Add ProfileNoticeList[Item] as separate lib class files
2015-03-12 15:53:28 +01:00
Mikael Nordfeldth
4e9e3cf0d5
Moving Ostatus_profile processShare to SharePlugin
2015-03-12 15:47:21 +01:00
Mikael Nordfeldth
5bea746fa8
Merge branch 'nightly' into repeat_as_shareplugin
2015-03-12 15:21:23 +01:00
Mikael Nordfeldth
5c8e56e8d2
Repeat confirmation dialogbox fix
...
until we use jQuery UI dialog stuff
2015-03-12 12:52:07 +01:00
Mikael Nordfeldth
6f0f8cd6c7
Initial work on making the Share verb handled in plugin
2015-03-12 12:27:49 +01:00
Mikael Nordfeldth
2a32af084f
ImageFile $id argument is only for File objects
...
Remember to eliminate the Avatar/group logo call to ImageFile->resize!
2015-03-11 00:20:48 +01:00
Mikael Nordfeldth
6f76c8b59d
Same as last commit, don't give ID if it's not for a File object
2015-03-11 00:14:14 +01:00
Mikael Nordfeldth
88411fb1ca
ImageFile should not have an $id set if not a File
2015-03-10 23:52:50 +01:00
Mikael Nordfeldth
3302067aad
javascript fixes for reply form fetching
...
It doesn't update the ID properly yet, which should be done to avoid
creating duplicate forms which are identical to HTML parsers...
2015-03-10 21:47:28 +01:00
Mikael Nordfeldth
0a2c51510c
FormAction wants getInstructions to be protected
...
only showInstructions is public
2015-03-10 21:46:33 +01:00
Mikael Nordfeldth
c79b9a2289
more descriptive setting name
2015-03-10 18:10:27 +01:00
Mikael Nordfeldth
8cfe72c683
SiteNoticeInSidebar widget did not define divId()
2015-03-10 17:33:58 +01:00
Mikael Nordfeldth
9ef224fceb
ActivityVerb is a core plugin
2015-03-10 17:24:23 +01:00
Mikael Nordfeldth
af67f15cf2
FavoritePlugin is now an "ActivityVerbHandlerPlugin"
2015-03-10 15:39:35 +01:00
Mikael Nordfeldth
e338931ffa
Let the creator decide which HTML tag to use for NoticeListItem
2015-03-10 13:07:36 +01:00
Mikael Nordfeldth
502f26299b
Notice elements don't need to be floating...
...
Maybe it was originally meant to be without a comma between .notice and .profile?
2015-03-10 12:09:20 +01:00
Mikael Nordfeldth
8a273eef20
Move AlreadyFulfilled check to Fave::addNew
2015-03-10 11:56:23 +01:00
Mikael Nordfeldth
fa080328cf
favorite and like are synonyms of each other
2015-03-09 18:47:44 +01:00
Mikael Nordfeldth
fa3457f391
First ActivityVerbPlugin sketch
2015-03-09 17:36:21 +01:00
Mikael Nordfeldth
aa27c45230
Notice class got exception throwing getById
...
Less code, more happy.
2015-03-09 17:33:20 +01:00
Mikael Nordfeldth
f321c3c2ea
Make 'activity' a blacklisted nickname
...
Will add a plugin called ActivityVerb which makes activity interaction
more standardized.
2015-03-09 17:08:10 +01:00
Mikael Nordfeldth
9bb648739b
The argument formatting regexps are the third argument
2015-03-09 15:31:07 +01:00
Mikael Nordfeldth
3287ecc8d3
Delete Faves onProfileDeleteRelated instead of User
2015-03-09 15:01:05 +01:00
Mikael Nordfeldth
1e89540c3f
Merge branch 'nightly', beginning of 1.2.x
...
Conflicts:
plugins/APC/locale/APC.pot
plugins/APC/locale/ast/LC_MESSAGES/APC.po
plugins/APC/locale/be-tarask/LC_MESSAGES/APC.po
plugins/APC/locale/br/LC_MESSAGES/APC.po
plugins/APC/locale/de/LC_MESSAGES/APC.po
plugins/APC/locale/es/LC_MESSAGES/APC.po
plugins/APC/locale/eu/LC_MESSAGES/APC.po
plugins/APC/locale/fr/LC_MESSAGES/APC.po
plugins/APC/locale/gl/LC_MESSAGES/APC.po
plugins/APC/locale/he/LC_MESSAGES/APC.po
plugins/APC/locale/ia/LC_MESSAGES/APC.po
plugins/APC/locale/id/LC_MESSAGES/APC.po
plugins/APC/locale/it/LC_MESSAGES/APC.po
plugins/APC/locale/mk/LC_MESSAGES/APC.po
plugins/APC/locale/ms/LC_MESSAGES/APC.po
plugins/APC/locale/nb/LC_MESSAGES/APC.po
plugins/APC/locale/nl/LC_MESSAGES/APC.po
plugins/APC/locale/pl/LC_MESSAGES/APC.po
plugins/APC/locale/pt/LC_MESSAGES/APC.po
plugins/APC/locale/pt_BR/LC_MESSAGES/APC.po
plugins/APC/locale/ru/LC_MESSAGES/APC.po
plugins/APC/locale/tl/LC_MESSAGES/APC.po
plugins/APC/locale/uk/LC_MESSAGES/APC.po
plugins/APC/locale/zh_CN/LC_MESSAGES/APC.po
plugins/Adsense/locale/Adsense.pot
plugins/Adsense/locale/be-tarask/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/br/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/ca/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/de/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/es/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/eu/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/fr/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/gl/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/he/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/ia/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/it/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/ja/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/ka/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/lb/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/lt/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/mk/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/ms/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/nb/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/nl/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/pl/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/pt/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/pt_BR/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/ru/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/sv/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/tl/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/tr/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/uk/LC_MESSAGES/Adsense.po
plugins/Adsense/locale/zh_CN/LC_MESSAGES/Adsense.po
plugins/Aim/locale/Aim.pot
plugins/Aim/locale/af/LC_MESSAGES/Aim.po
plugins/Aim/locale/ca/LC_MESSAGES/Aim.po
plugins/Aim/locale/de/LC_MESSAGES/Aim.po
plugins/Aim/locale/es/LC_MESSAGES/Aim.po
plugins/Aim/locale/eu/LC_MESSAGES/Aim.po
plugins/Aim/locale/fi/LC_MESSAGES/Aim.po
plugins/Aim/locale/fr/LC_MESSAGES/Aim.po
plugins/Aim/locale/gl/LC_MESSAGES/Aim.po
plugins/Aim/locale/ia/LC_MESSAGES/Aim.po
plugins/Aim/locale/it/LC_MESSAGES/Aim.po
plugins/Aim/locale/mk/LC_MESSAGES/Aim.po
plugins/Aim/locale/ms/LC_MESSAGES/Aim.po
plugins/Aim/locale/nl/LC_MESSAGES/Aim.po
plugins/Aim/locale/pl/LC_MESSAGES/Aim.po
plugins/Aim/locale/pt/LC_MESSAGES/Aim.po
plugins/Aim/locale/sv/LC_MESSAGES/Aim.po
plugins/Aim/locale/tl/LC_MESSAGES/Aim.po
plugins/Aim/locale/uk/LC_MESSAGES/Aim.po
plugins/Blog/locale/Blog.pot
plugins/Blog/locale/ar/LC_MESSAGES/Blog.po
plugins/Blog/locale/br/LC_MESSAGES/Blog.po
plugins/Blog/locale/ca/LC_MESSAGES/Blog.po
plugins/Blog/locale/de/LC_MESSAGES/Blog.po
plugins/Blog/locale/es/LC_MESSAGES/Blog.po
plugins/Blog/locale/eu/LC_MESSAGES/Blog.po
plugins/Blog/locale/fr/LC_MESSAGES/Blog.po
plugins/Blog/locale/gl/LC_MESSAGES/Blog.po
plugins/Blog/locale/ia/LC_MESSAGES/Blog.po
plugins/Blog/locale/it/LC_MESSAGES/Blog.po
plugins/Blog/locale/lt/LC_MESSAGES/Blog.po
plugins/Blog/locale/mk/LC_MESSAGES/Blog.po
plugins/Blog/locale/nl/LC_MESSAGES/Blog.po
plugins/Blog/locale/tl/LC_MESSAGES/Blog.po
plugins/Blog/locale/tr/LC_MESSAGES/Blog.po
plugins/Irc/locale/Irc.pot
plugins/Irc/locale/ca/LC_MESSAGES/Irc.po
plugins/Irc/locale/de/LC_MESSAGES/Irc.po
plugins/Irc/locale/es/LC_MESSAGES/Irc.po
plugins/Irc/locale/eu/LC_MESSAGES/Irc.po
plugins/Irc/locale/fi/LC_MESSAGES/Irc.po
plugins/Irc/locale/fr/LC_MESSAGES/Irc.po
plugins/Irc/locale/gl/LC_MESSAGES/Irc.po
plugins/Irc/locale/ia/LC_MESSAGES/Irc.po
plugins/Irc/locale/it/LC_MESSAGES/Irc.po
plugins/Irc/locale/ja/LC_MESSAGES/Irc.po
plugins/Irc/locale/mk/LC_MESSAGES/Irc.po
plugins/Irc/locale/nl/LC_MESSAGES/Irc.po
plugins/Irc/locale/sv/LC_MESSAGES/Irc.po
plugins/Irc/locale/tl/LC_MESSAGES/Irc.po
plugins/Irc/locale/tr/LC_MESSAGES/Irc.po
plugins/Irc/locale/uk/LC_MESSAGES/Irc.po
plugins/Spotify/locale/Spotify.pot
plugins/Spotify/locale/de/LC_MESSAGES/Spotify.po
plugins/Spotify/locale/es/LC_MESSAGES/Spotify.po
plugins/Spotify/locale/fr/LC_MESSAGES/Spotify.po
plugins/Spotify/locale/gl/LC_MESSAGES/Spotify.po
plugins/Spotify/locale/he/LC_MESSAGES/Spotify.po
plugins/Spotify/locale/ia/LC_MESSAGES/Spotify.po
plugins/Spotify/locale/mk/LC_MESSAGES/Spotify.po
plugins/Spotify/locale/nl/LC_MESSAGES/Spotify.po
plugins/Spotify/locale/sv/LC_MESSAGES/Spotify.po
plugins/Spotify/locale/tl/LC_MESSAGES/Spotify.po
plugins/TinyMCE/locale/TinyMCE.pot
plugins/TinyMCE/locale/ca/LC_MESSAGES/TinyMCE.po
plugins/TinyMCE/locale/de/LC_MESSAGES/TinyMCE.po
plugins/TinyMCE/locale/eo/LC_MESSAGES/TinyMCE.po
plugins/TinyMCE/locale/es/LC_MESSAGES/TinyMCE.po
plugins/TinyMCE/locale/fr/LC_MESSAGES/TinyMCE.po
plugins/TinyMCE/locale/gl/LC_MESSAGES/TinyMCE.po
plugins/TinyMCE/locale/he/LC_MESSAGES/TinyMCE.po
plugins/TinyMCE/locale/ia/LC_MESSAGES/TinyMCE.po
plugins/TinyMCE/locale/id/LC_MESSAGES/TinyMCE.po
plugins/TinyMCE/locale/ja/LC_MESSAGES/TinyMCE.po
plugins/TinyMCE/locale/mk/LC_MESSAGES/TinyMCE.po
plugins/TinyMCE/locale/ms/LC_MESSAGES/TinyMCE.po
plugins/TinyMCE/locale/nb/LC_MESSAGES/TinyMCE.po
plugins/TinyMCE/locale/nl/LC_MESSAGES/TinyMCE.po
plugins/TinyMCE/locale/pt/LC_MESSAGES/TinyMCE.po
plugins/TinyMCE/locale/pt_BR/LC_MESSAGES/TinyMCE.po
plugins/TinyMCE/locale/ru/LC_MESSAGES/TinyMCE.po
plugins/TinyMCE/locale/tl/LC_MESSAGES/TinyMCE.po
plugins/TinyMCE/locale/uk/LC_MESSAGES/TinyMCE.po
plugins/XCache/locale/XCache.pot
plugins/XCache/locale/ast/LC_MESSAGES/XCache.po
plugins/XCache/locale/br/LC_MESSAGES/XCache.po
plugins/XCache/locale/de/LC_MESSAGES/XCache.po
plugins/XCache/locale/es/LC_MESSAGES/XCache.po
plugins/XCache/locale/eu/LC_MESSAGES/XCache.po
plugins/XCache/locale/fi/LC_MESSAGES/XCache.po
plugins/XCache/locale/fr/LC_MESSAGES/XCache.po
plugins/XCache/locale/gl/LC_MESSAGES/XCache.po
plugins/XCache/locale/he/LC_MESSAGES/XCache.po
plugins/XCache/locale/ia/LC_MESSAGES/XCache.po
plugins/XCache/locale/id/LC_MESSAGES/XCache.po
plugins/XCache/locale/mk/LC_MESSAGES/XCache.po
plugins/XCache/locale/ms/LC_MESSAGES/XCache.po
plugins/XCache/locale/nb/LC_MESSAGES/XCache.po
plugins/XCache/locale/nl/LC_MESSAGES/XCache.po
plugins/XCache/locale/pl/LC_MESSAGES/XCache.po
plugins/XCache/locale/pt/LC_MESSAGES/XCache.po
plugins/XCache/locale/pt_BR/LC_MESSAGES/XCache.po
plugins/XCache/locale/ru/LC_MESSAGES/XCache.po
plugins/XCache/locale/tl/LC_MESSAGES/XCache.po
plugins/XCache/locale/tr/LC_MESSAGES/XCache.po
plugins/XCache/locale/uk/LC_MESSAGES/XCache.po
plugins/YammerImport/locale/YammerImport.pot
plugins/YammerImport/locale/br/LC_MESSAGES/YammerImport.po
plugins/YammerImport/locale/de/LC_MESSAGES/YammerImport.po
plugins/YammerImport/locale/es/LC_MESSAGES/YammerImport.po
plugins/YammerImport/locale/eu/LC_MESSAGES/YammerImport.po
plugins/YammerImport/locale/fr/LC_MESSAGES/YammerImport.po
plugins/YammerImport/locale/gl/LC_MESSAGES/YammerImport.po
plugins/YammerImport/locale/ia/LC_MESSAGES/YammerImport.po
plugins/YammerImport/locale/mk/LC_MESSAGES/YammerImport.po
plugins/YammerImport/locale/ms/LC_MESSAGES/YammerImport.po
plugins/YammerImport/locale/nl/LC_MESSAGES/YammerImport.po
plugins/YammerImport/locale/pl/LC_MESSAGES/YammerImport.po
plugins/YammerImport/locale/ru/LC_MESSAGES/YammerImport.po
plugins/YammerImport/locale/tl/LC_MESSAGES/YammerImport.po
plugins/YammerImport/locale/tr/LC_MESSAGES/YammerImport.po
plugins/YammerImport/locale/uk/LC_MESSAGES/YammerImport.po
2015-03-09 11:01:17 +01:00
Mikael Nordfeldth
5a3a3420e3
Merge commit 'refs/merge-requests/56' of https://gitorious.org/social/mainline into merge-requests/56
2015-03-09 10:39:27 +01:00
Mikael Nordfeldth
8ae1328e71
DB_DataObject won't save value 0 because it is "false"
...
A bug which we fix here and there by sending the string '0' instead.
We will be able to remove these hacks ("booleanintstring") when the
next release of DB_DataObject comes as I patched it for them.
2015-03-08 23:32:56 +01:00
Mikael Nordfeldth
6f61b4488e
Make the OpenID settings page use more of HTMLOutputter functions
2015-03-08 23:31:35 +01:00
Mikael Nordfeldth
474c8bef0a
Don't display labels by default in notice forms
...
There are either descriptive placeholders or informational text next to
the elements.
2015-03-08 23:30:54 +01:00
Mikael Nordfeldth
7aa1e02d06
Don't use a placeholder value on the nickname field
...
(because the placeholder would be 'Nickname', and it might confuse
someone who thinks they can use capital letters...)
2015-03-08 23:29:38 +01:00
Mikael Nordfeldth
b41c6824c5
Let text inputs have placeholder values.
2015-03-08 23:29:16 +01:00
Mikael Nordfeldth
05006f687a
Move more POST handling into ManagedAction
2015-03-08 21:08:27 +01:00
Mikael Nordfeldth
1ea876296d
A bunch of FormAction and ManagedAction synchronization
2015-03-08 20:41:42 +01:00
Mikael Nordfeldth
55894f02c7
TagProfileAction and OStatusPlugin now use less redundant code
2015-03-08 20:14:46 +01:00
Mikael Nordfeldth
32dacb9369
ROLLBACK queries in the proper order
2015-03-08 19:44:23 +01:00
Mikael Nordfeldth
d6423bbbc8
Sensitive-test _is_ done in index.php
2015-03-08 19:17:01 +01:00
Mikael Nordfeldth
1442ca16b4
Some reply buttons wouldn't work the first time they were clicked.
2015-03-08 12:54:08 +01:00
Mikael Nordfeldth
1a1b992858
RepliesAction migrated to extend ManagedAction
2015-03-08 12:38:15 +01:00
digital dreamer
a452a3b1a0
Snapshot of the Transifex translation project - February 2015
2015-03-08 09:34:38 +01:00
Mikael Nordfeldth
3c5383b11c
All the AJAX calls should be made with $.ajax
...
because we're gonna want to expect application/xml or text/xml back.
There's a weird thing in Firefox where the call on line ~703 makes the
web developer console output "not well formed" which is for the returned
data. It is assumed to be text/xml - which it is - but the doctype says
"html" (because it is first <?xml..?> followed by <!DOCTYPE html ...->
This doesn't cause any malfunction right now, just the output in the
console. I'm not exactly sure how to fix it. Probably remove the DOCTYPE
output for AJAX calls, but I'm not sure that's the best way. Could this
maybe even be a browser/javascript/whatever bug? Because the Content-Type
from the server _is_ right...
2015-03-08 01:36:59 +01:00
Mikael Nordfeldth
77190c9a87
Need to run the NoticeFormSetup if forms are prerendered
2015-03-07 23:42:27 +01:00
Mikael Nordfeldth
75d45dace9
Don't put submit button in reply field edge-to-edge
2015-03-07 23:38:03 +01:00
Mikael Nordfeldth
b604630a74
Don't put reply in a popup, it was undesired for users
...
Maybe could make that optional or something in the DefaultLayout plugin...
2015-03-07 23:36:27 +01:00
Mikael Nordfeldth
9deff7afaf
Email settings fix for the DB_DataObject bug for saving value 0
2015-03-07 21:57:43 +01:00
Mikael Nordfeldth
4e682f3d88
Reply popup works now
...
...WHY does javascript let me define the same value twice in the same
definition without warning about it? I hate Javascript. :(
2015-03-07 20:35:05 +01:00
Mikael Nordfeldth
196df7d8a4
Change the title of NewnoticeAction if replying
2015-03-07 20:34:46 +01:00
Mikael Nordfeldth
98b65763b0
input elements outside of label elements
...
HTML lets us put the input element inside the label and then they
are automatically paired, but this is more explicit and clear imho.
2015-03-07 20:11:13 +01:00
Mikael Nordfeldth
aefaef3ead
jquery-ui updated to 1.11.3
...
Checked all checkboxes on http://jqueryui.com/download/
2015-03-07 14:14:19 +01:00
Mikael Nordfeldth
be15ab47dc
jquery infieldlabel.js removed from script list
2015-03-07 12:32:24 +01:00
Mikael Nordfeldth
bc1d667784
jQuery cookie plugin updated
...
Source: https://plugins.jquery.com/cookie/
2015-03-07 01:00:07 +01:00
Mikael Nordfeldth
395c2cc075
JSON in JavaScript library updated
...
...why we now need a JSON library... _in_ Javascript?!
Source: http://www.json.org/js.html
2015-03-07 00:57:21 +01:00
Mikael Nordfeldth
a6c03e3127
jQuery Form Plugin updated
...
Source: http://malsup.com/jquery/form/
2015-03-07 00:55:17 +01:00
Mikael Nordfeldth
6080f6673e
"infield labels" should be migrated to HTML5 placeholder
2015-03-07 00:49:05 +01:00
Mikael Nordfeldth
fab08278ea
jQuery v2.1.3 seems to work fine
2015-03-07 00:48:43 +01:00
Mikael Nordfeldth
6b147175bb
Start working a bit more consistently with "notice-options"
...
Let's get the AJAX response and present it to the user with the same
mechanisms for all actions, instead of having a bunch of javascript
for various circumstances (fave, repeat, delete should all be the same
behaviour for example).
2015-03-07 00:32:26 +01:00
Mikael Nordfeldth
503c05b749
No need for NoticeFormMaster anymore
2015-03-07 00:00:02 +01:00
Mikael Nordfeldth
1303943424
Choose whether to prerender the inline reply forms
...
The DefaultLayout plugin will come with options to render various parts
of the page by default or not. The expected default behaviour will try
to imitate the original StatusNet/GNU social looks as far as possible.
2015-03-06 23:52:25 +01:00
Mikael Nordfeldth
8cf0628f28
Replies to replies without reloading page now work
2015-03-06 23:47:03 +01:00
Mikael Nordfeldth
c48a9191c8
Hide the threaded-replies gray line.
2015-03-06 23:46:08 +01:00
Mikael Nordfeldth
38f977d2f3
Make sure we save 0 as '0' because of DB_DataObject bug
2015-03-06 23:21:57 +01:00
Mikael Nordfeldth
45861c6d9c
Reply notice forms are functional again, but not AJAX
2015-03-06 21:20:46 +01:00
Mikael Nordfeldth
8abc2d3b8d
Remove some more reply-placeholder stuff
2015-03-06 20:42:50 +01:00
Mikael Nordfeldth
0da7512597
No separate placeholder input element for replyforms
...
Also we're moving the rendering of these out into a separate plugin. Not
done yet, some javascript should be moved out as well.
2015-03-06 20:22:01 +01:00
Mikael Nordfeldth
13c331fa81
Make NoticeForm return the proper placeholder text
...
Also fixes some comments and uncertainties in the beginning of the
class definition.
2015-03-06 20:04:09 +01:00
Mikael Nordfeldth
62596d462b
Get the values from the correct object.
2015-03-06 00:47:18 +01:00
Mikael Nordfeldth
f35ea45e09
Values of 0 would not be updated because of DB_DataObject
...
Upstream bug causing (int)0 to be interpreted as a "null string":
https://pear.php.net/bugs/bug.php?id=20291
2015-03-06 00:44:00 +01:00
Mikael Nordfeldth
72015d499f
Actually show all images as <img /> tags.
...
Browsers should be secure enough by now for this.
2015-03-05 11:59:31 +01:00
Mikael Nordfeldth
3755faf558
SVG files can be used as thumbnails I guess
2015-03-05 11:59:11 +01:00
Mikael Nordfeldth
ff6969302b
Some SVG files are "text/html" according to 'file'
2015-03-05 11:54:30 +01:00
Mikael Nordfeldth
d7fd507d99
ImageMagick sucks at vector graphics, so only use for rasterization
2015-03-05 11:53:52 +01:00
Mikael Nordfeldth
4c2bbf2354
ImageMagick plugin can now make thumbnails of SVG files
2015-03-04 13:50:20 +01:00
Mikael Nordfeldth
22dbeaef29
Used ->find(true) on wrong object
2015-03-04 13:46:51 +01:00
Mikael Nordfeldth
9720fd8250
Reset imgPath variable if VideoThumbnails failed
2015-03-04 13:45:42 +01:00
Mikael Nordfeldth
f6df1f1dd3
Documentation and more understandable code.
2015-03-04 13:29:18 +01:00
Mikael Nordfeldth
286b54e527
Use getUrl() on File and File_thumbnail instead of ->url
2015-03-04 13:13:20 +01:00
Mikael Nordfeldth
a4af51b5ba
Move thumbnail algorithm mainly to ImageFile class
2015-03-04 13:12:42 +01:00
Mikael Nordfeldth
dcfb813066
Free ImageMagick object from memory when done with it
2015-03-04 12:18:44 +01:00
Mikael Nordfeldth
fe9dc8e901
ImageMagickPlugin refactored so we can more easily add new formats
2015-03-04 12:09:22 +01:00
Mikael Nordfeldth
284705eeb8
Subscription_queue::start does not mean Subscription exists
2015-03-04 11:49:54 +01:00
Mikael Nordfeldth
ec4e432d55
Subscription::ensureStart skips AlreadyFulfilledException
...
Sometimes we just want to accept the user's wrong, but when it comes
to remote APIs etc. we probably want to let the client know it has
done something already (in this case multiple identical subscription
requests - which might indicate to it that it should refresh the sub
lists or something).
2015-03-04 11:38:04 +01:00
Mikael Nordfeldth
8c933a6c06
FillImageFileMetadata event documented
2015-03-02 20:37:59 +01:00
Mikael Nordfeldth
325199b5e6
Bug tracker link updated.
2015-03-01 16:48:01 +01:00
Mikael Nordfeldth
80bf185ad5
Blog depended on TinyMCE which was unmaintained
2015-03-01 14:32:48 +01:00
Mikael Nordfeldth
19bf975e56
Aahhh, gotta run php -l before pushing stuff!!!
2015-03-01 12:47:48 +01:00
Mikael Nordfeldth
1227d2d710
Forgot to make syntax edits on last commit.
2015-03-01 12:45:58 +01:00
Mikael Nordfeldth
bece816ec7
User class throws exception on register failure
2015-03-01 12:36:19 +01:00
Mikael Nordfeldth
7fdf2f50f4
Allow changing nick on EmailRegistration
...
Nothing said that the EmailRegistration plugin was meant to restrict
the nickname to the local part of the email address. Let users change
it before they actually register the user.
2015-03-01 12:31:52 +01:00
Mikael Nordfeldth
746e658f3e
Don't log every included config file
...
but let us retrieve the list by running GNUsocial::configFiles()
2015-02-28 13:04:17 +01:00
Mikael Nordfeldth
caa0dd549e
Avatar table url field now 'text', maybe use filename as unique key?
2015-02-28 12:56:42 +01:00
Mikael Nordfeldth
49cf19ccfe
INSTALL file overhaul, mostly done.
2015-02-27 16:06:05 +01:00
Mikael Nordfeldth
6abcc24834
htaccess.sample updating
2015-02-27 15:42:45 +01:00
Mikael Nordfeldth
fd53bb404f
ssh key based easy upgrade method documentation
2015-02-27 15:07:44 +01:00
Mikael Nordfeldth
dceb67c247
Better UPGRADE documentation for GS->GS upgrade
2015-02-27 15:03:07 +01:00
Mikael Nordfeldth
b3e299b931
StatusNet 1.1.x to GNU social 1.2.x instructions updated
2015-02-27 14:47:54 +01:00
Mikael Nordfeldth
818e895af1
UPGRADE file had incorrect commands
2015-02-27 14:12:01 +01:00
Mikael Nordfeldth
7e65f4f6ea
StatusNet to GNU social renaming in minor places
2015-02-27 12:55:25 +01:00
Mikael Nordfeldth
8fac7a9f6c
StatusNet class renamed GNUsocial
...
also added backward compatible StatusNet class for the two calls I know
third party plugins use, isHTTPS and getActivePlugins
2015-02-27 12:44:15 +01:00
Mikael Nordfeldth
f25e5e3860
Start and EndActionExecute added/fixed/documented
2015-02-27 12:11:43 +01:00
Mikael Nordfeldth
1cc96cd334
1.2.x branch started (utf8mb4 support is reason enough)
2015-02-27 10:09:57 +01:00
Mikael Nordfeldth
4e26527447
Change branch to 1.2.x since we're utf8mb4 now
2015-02-27 10:04:29 +01:00
Mikael Nordfeldth
c214aa5149
Merge branch 'master' into nightly
...
Conflicts:
lib/apiaction.php
2015-02-27 10:01:55 +01:00
Mikael Nordfeldth
48f8f3f5cf
php5-intl is recommended but not required
2015-02-26 22:58:36 +01:00
Mikael Nordfeldth
0b09e4bfcb
Normalize username on AuthCrypt login
...
Because users login with mixed casing and whatnot.
2015-02-26 00:45:17 +01:00
Mikael Nordfeldth
4eab52ee75
Attachment list items have more sane margins around them
2015-02-26 00:12:34 +01:00
Mikael Nordfeldth
b8e4f41987
Notice character count now adapts to resized textbox
2015-02-25 16:40:59 +01:00
Mikael Nordfeldth
f7553d73a2
501 Not Implemented on timelines for remote users.
2015-02-25 16:31:02 +01:00
Mikael Nordfeldth
b0e767eaf1
NoticeOptions above NoticeAttachments
2015-02-25 16:22:59 +01:00
Mikael Nordfeldth
82ef687730
Removing some plugins that were moved to plugins-unmaintained
...
See https://gitorious.org/social/plugins-unmaintained/
2015-02-25 15:47:14 +01:00
Mikael Nordfeldth
7e6ba94241
Documentation + filename uniqueness in File class
2015-02-25 15:19:27 +01:00
Mikael Nordfeldth
46a41f48ca
Merge commit 'refs/merge-requests/55' of https://gitorious.org/social/mainline into merge-requests/55
2015-02-25 12:59:19 +01:00
Mikael Nordfeldth
86a8f4c5c7
Removed Lato font from themes where it was unnecessary
2015-02-25 12:56:41 +01:00
Mikael Nordfeldth
afbb3ec37a
Merge commit 'refs/merge-requests/51' of https://gitorious.org/social/mainline into merge-requests/51
2015-02-25 12:52:35 +01:00
Mikael Nordfeldth
d0ef37a487
trailing whitespace
2015-02-25 12:50:56 +01:00
Mikael Nordfeldth
611e5ab421
Merge commit 'refs/merge-requests/49' of https://gitorious.org/social/mainline into merge-requests/49
2015-02-25 12:49:58 +01:00
Mikael Nordfeldth
38729133e2
HTML5 media <source> tags are short tags
2015-02-25 12:49:15 +01:00
Mikael Nordfeldth
ce0b221573
avconv required -f image2 not -f mjpeg at least on my server
2015-02-25 01:44:00 +01:00
Mikael Nordfeldth
95b61a5e12
Only local files to be passed through VideoThumbnails
2015-02-25 01:37:57 +01:00
Mikael Nordfeldth
3bbb748a08
VideoThumbnails changed to use 'exec' call to avconv
2015-02-25 01:36:14 +01:00
Mikael Nordfeldth
9a843548c0
Save thumbnails with proper extension
...
This might cause double extensions, but that's ok since the filename
is stored in the database. We might want to look at it later though.
2015-02-25 01:34:00 +01:00
Mikael Nordfeldth
220a13b87f
mimetype added to ImageFile
2015-02-25 01:33:32 +01:00
Mikael Nordfeldth
4b8301d39e
ImageFile constructor changed to align with existing code
...
Noone passed type, width or height to new ImageFile(...) and
in all instances, both parameters were set (though $id is null on occasion).
2015-02-25 01:31:44 +01:00
Mikael Nordfeldth
0854a84eb9
Throw more explicit exception in ImageFile
2015-02-25 01:14:27 +01:00
Mikael Nordfeldth
ce91f1c0e6
Hide posts from users with private_stream in scoping streams
...
For example the public timeline would show notices from a user with
private_stream configured. (previously it would only hide _new_ notices
by this user as they would be the only ones with notice scoping set).
2015-02-24 22:59:58 +01:00
Mikael Nordfeldth
060dbe1b56
Removing whitespace and creating an early-return in inScope
2015-02-24 22:44:43 +01:00
buttle
b9d4a9c9f9
added DocNav EVENT
...
Event to overide DocNav
two small css changes to indent notice footer correctly.
2015-02-24 21:51:31 +01:00
Mikael Nordfeldth
325e784ccd
Don't store duplicates of files.
...
If a new file is uploaded, it will be matched with a previously uploaded
file so we don't have to store duplicates. SHA256 is random enough and
also unlikely enough to cause collisions.
2015-02-24 21:11:25 +01:00
Mikael Nordfeldth
0d577584c3
Script to delete file table entries which have disappeared locally
2015-02-24 19:29:28 +01:00
Mikael Nordfeldth
27bc654b5b
RSSCloud URL field too long for utf8mb4
...
Should be the last one. If any URLs are longer than 191 chars, it might
require more manual interaction. Any instance with problems running
scripts/upgrade.php will get special treatment, help and a lollipop.
2015-02-21 16:43:21 +01:00
Mikael Nordfeldth
c1e3cfe7a7
ensureFeedURL will return Ostatus_profile early if already stored
2015-02-20 14:47:12 +01:00
Mikael Nordfeldth
96099807e1
Default install to site profile community
2015-02-20 01:00:28 +01:00
Mikael Nordfeldth
b639a25856
Emoji support through utf8mb4 seems to be done!
...
scripts/upgrade.php will take a _long_ time though! But it's worth it.
2015-02-19 22:13:42 +01:00
Mikael Nordfeldth
0e6c83e521
Had to avoid using indexes in the migration phase
...
File and File_redirection still had their indexes in the temporary migration table definition.
2015-02-19 22:06:43 +01:00
Mikael Nordfeldth
987232a0a6
Remove common_debug call that slipped by
2015-02-19 21:26:55 +01:00
Mikael Nordfeldth
b54710950f
unique keys and indexes must be NOT NULL or MySQL fucks up
...
If this merge throws exception on scripts/upgrade.php and you recently
tried a nightly (i.e. during 2015-02-19) then just go back a commit or two
and try again.
Or delete the duplicate entries. Find the entries like this:
SELECT COUNT(*), urlhash FROM file_redirection
GROUP BY urlhash
HAVING COUNT(*) > 1;
then for each urlhash (or come up with a smart SQL query) do:
DELETE FROM file_redirection WHERE urlhash='hashfrompreviousquery' LIMIT 1;
You'll have to remove duplicates more than once if you have >2 identical
urlhash entries. LIMIT -1 might do that for you. I'm not sure.
2015-02-19 21:21:39 +01:00
Mikael Nordfeldth
d061e1065e
Some loose table definitions which needed 191 char indexes
...
because we want utf8mb4 so badly!
2015-02-19 21:02:14 +01:00
Mikael Nordfeldth
0590f2975e
Merge branch 'utf8mb4' into nightly
...
Conflicts because of urlhash fixes:
classes/File.php
classes/File_redirection.php
classes/File_thumbnail.php
2015-02-19 20:50:40 +01:00
Mikael Nordfeldth
5471c65c9a
less newlines for the scripts/upgrade.php output
2015-02-19 19:40:36 +01:00
Mikael Nordfeldth
e299583eee
Bad check on existing urlhash key
2015-02-19 19:36:59 +01:00
Mikael Nordfeldth
8ac8e2e734
Use new ::getByUrl for File and File_redirection
...
and make use of the exceptions instead endless if statements
2015-02-19 19:29:55 +01:00
Mikael Nordfeldth
5b940f255f
Mediafile updated to insert urlhash and lookup properly
2015-02-19 19:19:47 +01:00
Mikael Nordfeldth
c05e9b118c
function is hashurl, variable is urlhash
2015-02-19 19:07:43 +01:00
Mikael Nordfeldth
45dc76de26
File and File_redirection adhoc storage methods updated for urlhash
2015-02-19 19:05:24 +01:00
Mikael Nordfeldth
0dfe39ac87
File_thumbnail url is not an index
2015-02-19 18:59:13 +01:00
Mikael Nordfeldth
27480d8e8e
File_redirection also got urlhash column
2015-02-19 18:34:48 +01:00
Mikael Nordfeldth
176bde269f
Merge branch 'nightly' into file_urlhash
2015-02-19 18:13:09 +01:00
Mikael Nordfeldth
df2cc09362
$this->scoped->getUser() instead of common_current_user();
2015-02-19 17:46:37 +01:00
Mikael Nordfeldth
042cb1604a
ROLLBACK if query failed in email settings savePreferences
2015-02-19 17:43:08 +01:00
Mikael Nordfeldth
0acf3e0e30
Profile table cleaning script.
2015-02-18 14:01:35 +01:00
Mikael Nordfeldth
4ad7e8f459
UserdirectoryAction now ManagedAction and better SQL
2015-02-18 13:37:06 +01:00
Mikael Nordfeldth
d445e0c877
No need for return true
2015-02-18 13:18:32 +01:00
Mikael Nordfeldth
e64ac4c418
GroupdirectoryAction now has no direct SQL queries
...
also various fixes uppers
2015-02-18 12:17:26 +01:00
Mikael Nordfeldth
94e19e1ac6
escapedTableName for SQL query easy access
2015-02-18 12:15:46 +01:00
Mikael Nordfeldth
a254f38a23
Turn GroupdirectoryAction into a ManagedAction
2015-02-18 11:15:30 +01:00
Mikael Nordfeldth
52e0ce8b06
Directory group search code cleanup
2015-02-18 11:13:10 +01:00
Mikael Nordfeldth
b039d960f5
Make group search in Directory use PEAR::DB
...
No more direct SQL queries please.
2015-02-18 11:08:11 +01:00
Mikael Nordfeldth
66df043c19
Add php5-intl dependency to Installer class
2015-02-18 00:47:00 +01:00
Mikael Nordfeldth
8fbdb4b9ac
New dependency: php5-intl
...
Internationalization support is required for transliteration, which is
currently used when creating the slugs for hashtags and such. It is a
much more stable and efficient solution than having an unmaintainable
list of unciode characters in an array...
2015-02-18 00:28:45 +01:00
Mikael Nordfeldth
0deaf6c50c
use common_purify to purify HTML, one function to rule them all
2015-02-18 00:14:28 +01:00
Mikael Nordfeldth
3dce6d9f6a
Implement a common_purify for htmLawed and more
...
We're removing unicode formatting characters as well, such as RTL marks.
For more info on why we're because extra cautious (but may accept the
characters in later versions) you can read:
https://blog.malwarebytes.org/online-security/2014/01/the-rtlo-method/
2015-02-18 00:10:31 +01:00
Mikael Nordfeldth
9aa59c7f62
forgot primary key column to updateWithKeys in SalmonAction
2015-02-17 21:31:35 +01:00
Mikael Nordfeldth
7ba7f43199
Don't linkify bare domains by default
...
It's too farfetched to assume any text.com in a notice is an HTTP URL.
For example stuff like pasting from log entries, with domain.com:1234
where 1234 is a _PID_ or something, not a port number for http://...
2015-02-17 20:54:32 +01:00
Mikael Nordfeldth
c31c2d10b9
PHP>=5.4.0 lets us use Transliterator, tags now asciified!
...
For example: #REVOLUCIÓN becomes #revolucion instead of #revolución
2015-02-17 20:17:22 +01:00
Mikael Nordfeldth
5a8f24eb46
urlhash first steps, including scripts/upgrade.php
2015-02-17 18:55:12 +01:00
Mikael Nordfeldth
59763ceecb
SalmonAction now updates remote URI if it was stale.
...
After doublechecking two identities so that they match (like one that was
previously http:// but now is https://) we update the URI in our database
to match.
This has to be verified so it's not easy to fool our script and thus make
us replace legitimate URIs with fake ones. I believe the callback method
is safe, but I'm not sure how well it handles HTTP MITM attacks etc.
2015-02-17 17:35:45 +01:00
Mikael Nordfeldth
282f4d6a89
Various $this->scoped fixes and protected prepare/handle in API actions
2015-02-17 17:20:00 +01:00
Mikael Nordfeldth
6cdedf6049
Replace $this->user/auth_user with $this->scoped in lib/apiaction.php
...
We prefer handling a Profile class rather than the User class, as some
functions might be useful for remote users as well, which cannot be
handled via the User class.
2015-02-17 17:16:33 +01:00
Mikael Nordfeldth
61aa71ed34
Subscription class gets exception throwing getSubscription function
2015-02-17 17:15:47 +01:00
Mikael Nordfeldth
901a825b61
Non-functional "retweeted to me" API call modified (but not fixed)
...
For some reason the "retweeted to me" part of the Twitter API was removed
when Evan made some inbox changes back in the StatusNet days. We might
recover this functionality, but not yet. The proper function calls are
however fixed in this commit.
2015-02-17 16:48:24 +01:00
Mikael Nordfeldth
75f35bcfe7
apiauth action with ->user changed to ->scoped
2015-02-17 16:39:27 +01:00
Mikael Nordfeldth
406b6148f5
CSS: notice images no wider than 100%
...
We should actually not allow remote images to be given in the src attribute
because they can be used for tracking and other nasty stuff without being
seen by the enduser.
Also, allowing remote images linked like this won't work for users who run
plugins like RequestPolicy etc. anyway. A better method would be to make
them listed as attachments instead. Then we can use that subsystem for
making thumbnails to store locally, hotlinking sources and whatnot.
2015-02-17 01:26:18 +01:00
Marcus Moeller
f7b41625e5
opacity is not needed as it's transparent
...
use alignment instead of padding for padlock symbol
2015-02-16 17:50:43 +01:00
Marcus Moeller
0168fddae5
updated font settings to match qvitter
2015-02-16 17:37:13 +01:00
Chimo
ef780d5034
Move people tag autocomplete JS to plugin
...
As discussed in https://gitorious.org/social/mainline/merge_requests/47
2015-02-15 19:10:05 -05:00
Mikael Nordfeldth
6862184956
Merge commit 'refs/merge-requests/47' of https://gitorious.org/social/mainline into merge-requests/47
2015-02-15 23:06:22 +01:00
Mikael Nordfeldth
2b181b40f7
Merge commit 'refs/merge-requests/48' of https://gitorious.org/social/mainline into merge-requests/48
2015-02-15 22:54:48 +01:00
Marcus Moeller
4c457c82ef
removed text beside lock icon and fixed alignment
2015-02-15 22:47:34 +01:00
Chimo
3f8a519980
JS: Fixes jQueryUI autocomplete 'undefined' errors
...
data("autocomplete") was renamed to data("ui-autocomplete") starting
from v1.9:
http://jqueryui.com/upgrade-guide/1.9/#changed-naming-convention-for-data-keys
2015-02-15 16:11:23 -05:00
Chimo
fb03fc073a
ApiTimelineList: Fixes ServerErrorAction
...
"No matches for action 'ApiTimelineList' with arguments 'format=atom
id=1'"
for 'api/:user/lists/:id/statuses.:format' URLs
2015-02-15 16:00:23 -05:00
Mikael Nordfeldth
2b93643277
Don't default to publishing http: alias!
...
It seems to have caused a problem with at least an older codebase of
remote GNU social sites, but either way we shouldn't present the user
as aliased on an insecure connection if there is no real reason to.
2015-02-15 13:33:36 +01:00
Mikael Nordfeldth
396f1e92ca
Present http:// alias by default in WebFinger output
...
because it might help us (and especially StatusNet sites) to recognize
profiles that have migrated from HTTP to HTTPS!
2015-02-15 13:17:51 +01:00
Mikael Nordfeldth
c60b6bdb38
Wrong order of start/end events. My hobby OCD was disturbed.
2015-02-14 17:37:35 +01:00
Mikael Nordfeldth
9c83ddc122
Fixed some recently added EVENTS documentation
2015-02-14 17:35:34 +01:00
Mikael Nordfeldth
b6b9036821
StartSubMenu and EndSubMenu events
2015-02-14 17:32:35 +01:00
Mikael Nordfeldth
dc0b62f636
Merge commit 'refs/merge-requests/45' of https://gitorious.org/social/mainline into merge-requests/45
2015-02-14 16:45:04 +01:00
Mikael Nordfeldth
9102429a13
neo-quitter unuglification by marcus, merge-request 44
2015-02-14 16:42:44 +01:00
Marcus Moeller
1fcb7afd3a
fixed alignment of textarea
...
fixed event view
2015-02-13 23:09:34 +01:00
Marcus Moeller
fe14c64e5e
just make sure that input box and input box label are the same color
2015-02-13 18:09:43 +01:00
Marcus Moeller
107ca92458
use Genericons and fontawesome instead of images
2015-02-13 18:00:57 +01:00
buttle
9a8ccbaef2
Call HomeStubNav instead of duplicating code
...
adminpanelnav.php adds a homeStub but does not use the code created for the job.
2015-02-13 16:38:22 +01:00
buttle
d0347bb98f
Removing home stub if empty
...
Added an Event HomeStubNavItems
menu->subMenu() returns false if empty
2015-02-13 16:26:41 +01:00
Marcus Moeller
3fcb79bc1e
moved profile/group patch from core to profile_list
2015-02-12 23:07:49 +01:00
Marcus Moeller
41da1d6403
updated neo-quitter favicon to match the theme style
2015-02-12 22:55:01 +01:00
Marcus Moeller
41baba9ed3
lock icon style fixed to match quitter style
2015-02-12 22:26:34 +01:00
Mikael Nordfeldth
2f86cd8602
utf8mb4 conversion on database with index adjusts
2015-02-12 18:18:55 +01:00
Marcus Moeller
a1061c7145
fixed neo-quitter web view
2015-02-11 09:58:28 +01:00
buttle
2a0a0287d4
Added EVENT to homestubnav
...
Changed menu->submenu(). if (! $menu->getItems()) then do nothing
2015-02-10 19:20:01 +01:00