mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-12-12 21:30:29 +05:30
Merge pull request #505 from TeamPiped/drop-ipfs
Drop IPFS publish code.
This commit is contained in:
commit
939b0bbaa8
@ -23,7 +23,6 @@ dependencies {
|
||||
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.14.1'
|
||||
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.1'
|
||||
implementation 'com.rometools:rome:1.18.0'
|
||||
implementation 'com.github.ipfs:java-ipfs-http-client:v1.3.3'
|
||||
implementation 'org.jsoup:jsoup:1.15.3'
|
||||
implementation 'io.activej:activej-common:5.4.3'
|
||||
implementation 'io.activej:activej-http:5.4.3'
|
||||
|
@ -1,20 +0,0 @@
|
||||
package me.kavin.piped.ipfs;
|
||||
|
||||
import me.kavin.piped.utils.Multithreading;
|
||||
import me.kavin.piped.utils.obj.Channel;
|
||||
|
||||
public class IPFS {
|
||||
|
||||
// private static final io.ipfs.api.IPFS ipfs = new io.ipfs.api.IPFS(new MultiAddress("/ip4/127.0.0.1/tcp/5001"));
|
||||
|
||||
public static void publishData(final Channel channel) {
|
||||
Multithreading.runAsync(() -> {
|
||||
try {
|
||||
// ipfs.pubsub.pub(URLUtils.silentEncode(channel.id),
|
||||
// URLUtils.silentEncode(Constants.mapper.writeValueAsString(channel)));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
@ -3,7 +3,6 @@ package me.kavin.piped.server.handlers;
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import io.sentry.Sentry;
|
||||
import me.kavin.piped.consts.Constants;
|
||||
import me.kavin.piped.ipfs.IPFS;
|
||||
import me.kavin.piped.utils.*;
|
||||
import me.kavin.piped.utils.obj.*;
|
||||
import me.kavin.piped.utils.obj.db.Video;
|
||||
@ -138,8 +137,6 @@ public class ChannelHandlers {
|
||||
rewriteURL(info.getBannerUrl()), info.getDescription(), info.getSubscriberCount(), info.isVerified(),
|
||||
nextpage, relatedStreams, tabs);
|
||||
|
||||
IPFS.publishData(channel);
|
||||
|
||||
return mapper.writeValueAsBytes(channel);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user