mirror of
https://github.com/nuclearfog/Shitter.git
synced 2025-01-31 19:34:55 +01:00
bug fix
This commit is contained in:
parent
687583fc54
commit
023cadfbdd
@ -556,7 +556,7 @@ public class Mastodon implements Connection {
|
|||||||
@Override
|
@Override
|
||||||
public UserList createUserlist(UserListUpdate update) throws MastodonException {
|
public UserList createUserlist(UserListUpdate update) throws MastodonException {
|
||||||
List<String> params = new ArrayList<>();
|
List<String> params = new ArrayList<>();
|
||||||
params.add("title=" + update.getTitle());
|
params.add("title=" + StringTools.encode(update.getTitle()));
|
||||||
try {
|
try {
|
||||||
return createUserlist(post(ENDPOINT_USERLIST, params));
|
return createUserlist(post(ENDPOINT_USERLIST, params));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
@ -568,7 +568,7 @@ public class Mastodon implements Connection {
|
|||||||
@Override
|
@Override
|
||||||
public UserList updateUserlist(UserListUpdate update) throws MastodonException {
|
public UserList updateUserlist(UserListUpdate update) throws MastodonException {
|
||||||
List<String> params = new ArrayList<>();
|
List<String> params = new ArrayList<>();
|
||||||
params.add("title=" + update.getTitle());
|
params.add("title=" + StringTools.encode(update.getTitle()));
|
||||||
try {
|
try {
|
||||||
return createUserlist(put(ENDPOINT_USERLIST + update.getId(), params));
|
return createUserlist(put(ENDPOINT_USERLIST + update.getId(), params));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
@ -661,19 +661,19 @@ public class Mastodon implements Connection {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendDirectmessage(long id, String message, long mediaId) throws MastodonException {
|
public void sendDirectmessage(long id, String message, long mediaId) throws MastodonException {
|
||||||
throw new MastodonException("not implemented!"); // todo add implementation
|
throw new MastodonException("not supported!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void deleteDirectmessage(long id) throws MastodonException {
|
public void deleteDirectmessage(long id) throws MastodonException {
|
||||||
throw new MastodonException("not implemented!"); // todo add implementation
|
throw new MastodonException("not supported!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Messages getDirectmessages(String cursor) throws MastodonException {
|
public Messages getDirectmessages(String cursor) throws MastodonException {
|
||||||
throw new MastodonException("not implemented!"); // todo add implementation
|
throw new MastodonException("not supported!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -710,8 +710,8 @@ public class Mastodon implements Connection {
|
|||||||
List<InputStream> streams = new ArrayList<>();
|
List<InputStream> streams = new ArrayList<>();
|
||||||
List<String> keys = new ArrayList<>();
|
List<String> keys = new ArrayList<>();
|
||||||
|
|
||||||
params.add("display_name=" + update.getName());
|
params.add("display_name=" + StringTools.encode(update.getName()));
|
||||||
params.add("note=" + update.getDescription().replace('\n', ' '));
|
params.add("note=" + StringTools.encode(update.getDescription()));
|
||||||
if (update.getProfileImageStream() != null) {
|
if (update.getProfileImageStream() != null) {
|
||||||
streams.add(update.getProfileImageStream());
|
streams.add(update.getProfileImageStream());
|
||||||
keys.add("avatar");
|
keys.add("avatar");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user