Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
c15aff66
Verified
Commit
c15aff66
authored
Feb 12, 2021
by
Chocobozzz
Browse files
Remove old code
We consider Dislike as a classic activity now
parent
18ffaf24
Pipeline
#390262
passed with stages
in 13 minutes and 57 seconds
Changes
2
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
c15aff66
...
...
@@ -49,7 +49,7 @@ Be part of a network of multiple small federated, interoperable video hosting pr
<img
alt=
"test suite status"
src=
"https://github.com/Chocobozzz/PeerTube/workflows/Test%20Suite/badge.svg"
/>
</a>
<a
href=
"http://standardjs.com/"
>
<a
href=
"http
s
://standardjs.com/"
>
<img
src=
"https://img.shields.io/badge/code%20style-standard-brightgreen.svg"
alt=
"JavaScript Style Guide"
/>
</a>
</p>
...
...
@@ -58,7 +58,7 @@ Be part of a network of multiple small federated, interoperable video hosting pr
<p
align=
"center"
>
<a
href=
"https://framatube.org/videos/watch/217eefeb-883d-45be-b7fc-a788ad8507d3"
>
<img
src=
"http://lutim.cpy.re/9CLXh0Ys.png"
alt=
"screenshot"
/>
<img
src=
"http
s
://lutim.cpy.re/9CLXh0Ys.png"
alt=
"screenshot"
/>
</a>
</p>
...
...
@@ -190,4 +190,4 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see
<http://www.gnu.org/licenses/>
.
along with this program. If not, see
<http
s
://www.gnu.org/licenses/>
.
server/lib/activitypub/process/process-undo.ts
View file @
c15aff66
...
...
@@ -6,12 +6,12 @@ import { sequelizeTypescript } from '../../../initializers/database'
import
{
AccountVideoRateModel
}
from
'
../../../models/account/account-video-rate
'
import
{
ActorModel
}
from
'
../../../models/activitypub/actor
'
import
{
ActorFollowModel
}
from
'
../../../models/activitypub/actor-follow
'
import
{
forwardVideoRelatedActivity
}
from
'
../send/utils
'
import
{
getOrCreateVideoAndAccountAndChannel
}
from
'
../videos
'
import
{
VideoShareModel
}
from
'
../../../models/video/video-share
'
import
{
VideoRedundancyModel
}
from
'
../../../models/redundancy/video-redundancy
'
import
{
VideoShareModel
}
from
'
../../../models/video/video-share
'
import
{
APProcessorOptions
}
from
'
../../../types/activitypub-processor.model
'
import
{
MActorSignature
}
from
'
../../../types/models
'
import
{
forwardVideoRelatedActivity
}
from
'
../send/utils
'
import
{
getOrCreateVideoAndAccountAndChannel
}
from
'
../videos
'
async
function
processUndoActivity
(
options
:
APProcessorOptions
<
ActivityUndo
>
)
{
const
{
activity
,
byActor
}
=
options
...
...
@@ -22,9 +22,7 @@ async function processUndoActivity (options: APProcessorOptions<ActivityUndo>) {
}
if
(
activityToUndo
.
type
===
'
Create
'
)
{
if
(
activityToUndo
.
object
.
type
===
'
Dislike
'
)
{
return
retryTransactionWrapper
(
processUndoDislike
,
byActor
,
activity
)
}
else
if
(
activityToUndo
.
object
.
type
===
'
CacheFile
'
)
{
if
(
activityToUndo
.
object
.
type
===
'
CacheFile
'
)
{
return
retryTransactionWrapper
(
processUndoCacheFile
,
byActor
,
activity
)
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment