Skip to content

Commit 11550e0

Browse files
committed
refactor: use pastes.dev for viewing userdata dumps
1 parent 33e20a0 commit 11550e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/src/main/java/net/william278/husksync/util/UserDataDumper.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
@AllArgsConstructor(access = AccessLevel.PRIVATE)
4545
public class UserDataDumper implements Flusher {
4646

47+
private static final String PASTE_VIEWER_URL = "https://pastes.dev";
48+
4749
private final DataSnapshot.Packed snapshot;
4850
private final User user;
4951
private final HuskSync plugin;
@@ -65,7 +67,7 @@ public static UserDataDumper create(@NotNull DataSnapshot.Packed snapshot, @NotN
6567
@NotNull
6668
public String toWeb() {
6769
try {
68-
return "%s/%s".formatted(BYTEBIN_URL, uploadDump(toString(), BYTEBIN_URL, "husksync"));
70+
return "%s/%s".formatted(PASTE_VIEWER_URL, uploadDump(toString(), BYTEBIN_URL, "husksync"));
6971
} catch (Throwable e) {
7072
plugin.log(Level.SEVERE, "Failed to upload data.", e);
7173
}

0 commit comments

Comments
 (0)