]> git.mxchange.org Git - friendica.git/commit
Make "like" links one way
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 27 May 2020 12:40:00 +0000 (08:40 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 27 May 2020 12:41:13 +0000 (08:41 -0400)
commitdf1c74bd33e1e2409705a8ea5e5e4f5a23244175
treec8fbc6b62dce7bc9cdc2c5bc80c0b54f2f4af313
parente20d5ff0b5bd09aad7467ed6bbed820be41dcbff
Make "like" links one way

- Updated dolike() function to accept a "un-" switch
- [frio] Updated doLikeAction() function to call dolike() instead of having duplicated code
- Added boolean logic (with explanatory truth table) to smartly delete existing activities in Model\Item::performActivity
- Moved verb/activity parameter handling closer to their use in Model\Item::performActivity
- Updated all references to dolike() and doLikeAction() to include the "un-" switch
13 files changed:
src/Model/Item.php
view/js/main.js
view/templates/wall_thread.tpl
view/theme/frio/js/theme.js
view/theme/frio/templates/search_item.tpl
view/theme/frio/templates/wall_thread.tpl
view/theme/quattro/templates/photo_item.tpl
view/theme/quattro/templates/search_item.tpl
view/theme/quattro/templates/wall_thread.tpl
view/theme/smoothly/templates/wall_thread.tpl
view/theme/vier/templates/photo_item.tpl
view/theme/vier/templates/search_item.tpl
view/theme/vier/templates/wall_thread.tpl