mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Drop IPFS publish code.
This commit is contained in:
parent
5236c9a3cb
commit
e8b0f197a9
3 changed files with 0 additions and 24 deletions
|
@ -23,7 +23,6 @@ dependencies {
|
||||||
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.14.1'
|
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.14.1'
|
||||||
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.1'
|
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.1'
|
||||||
implementation 'com.rometools:rome:1.18.0'
|
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 'org.jsoup:jsoup:1.15.3'
|
||||||
implementation 'io.activej:activej-common:5.4.3'
|
implementation 'io.activej:activej-common:5.4.3'
|
||||||
implementation 'io.activej:activej-http: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 com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
import io.sentry.Sentry;
|
import io.sentry.Sentry;
|
||||||
import me.kavin.piped.consts.Constants;
|
import me.kavin.piped.consts.Constants;
|
||||||
import me.kavin.piped.ipfs.IPFS;
|
|
||||||
import me.kavin.piped.utils.*;
|
import me.kavin.piped.utils.*;
|
||||||
import me.kavin.piped.utils.obj.*;
|
import me.kavin.piped.utils.obj.*;
|
||||||
import me.kavin.piped.utils.obj.db.Video;
|
import me.kavin.piped.utils.obj.db.Video;
|
||||||
|
@ -138,8 +137,6 @@ public class ChannelHandlers {
|
||||||
rewriteURL(info.getBannerUrl()), info.getDescription(), info.getSubscriberCount(), info.isVerified(),
|
rewriteURL(info.getBannerUrl()), info.getDescription(), info.getSubscriberCount(), info.isVerified(),
|
||||||
nextpage, relatedStreams, tabs);
|
nextpage, relatedStreams, tabs);
|
||||||
|
|
||||||
IPFS.publishData(channel);
|
|
||||||
|
|
||||||
return mapper.writeValueAsBytes(channel);
|
return mapper.writeValueAsBytes(channel);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue