diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0ba34768..b0236e9c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,8 @@ -image: reactivecircus/android-emulator-26:latest +image: reactivecircus/android-emulator-23:latest variables: - API_LEVEL: "26" + API_LEVEL: "23" ARCH: "x86" TARGET: "default" @@ -34,25 +34,24 @@ debugTests: - ./gradlew -Pci --console=plain :app:testDebug -#emulatorTest: -# interruptible: true -# stage: test -# script: -# - sdkmanager --sdk_root=${ANDROID_HOME} "system-images;android-${API_LEVEL};${TARGET};${ARCH}" -# - echo no | avdmanager create avd --force --name "api-${API_LEVEL}" --abi "${TARGET}/${ARCH}" --package "system-images;android-${API_LEVEL};${TARGET};${ARCH}" -# - $ANDROID_HOME/emulator/emulator -avd "api-${API_LEVEL}" -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none & -# - chmod +x android-wait-for-emulator.sh -# - ./gradlew build -# - ./android-wait-for-emulator.sh -# - adb shell settings put global window_animation_scale 0.0 -# - adb shell settings put global transition_animation_scale 0.0 -# - adb shell settings put global animator_duration_scale 0.0 +emulatorTest: + interruptible: true + stage: test + script: + - echo no | avdmanager create avd --force --name "api-${API_LEVEL}" --abi "${TARGET}/${ARCH}" --package "system-images;android-${API_LEVEL};${TARGET};${ARCH}" + - $ANDROID_SDK_ROOT/emulator/emulator -avd "api-${API_LEVEL}" -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none & + - chmod +x android-wait-for-emulator.sh + - ./gradlew build + - ./android-wait-for-emulator.sh + - adb shell settings put global window_animation_scale 0.0 + - adb shell settings put global transition_animation_scale 0.0 + - adb shell settings put global animator_duration_scale 0.0 -# - ./gradlew build connectedCheck connectedDebugAndroidTest jacocoTestReport + - ./gradlew build connectedCheck connectedStagingAndroidTest jacocoTestReport -# - cat app/build/reports/jacoco/jacocoTestReport/html/index.html | grep -o 'Total[^%]*%' + - cat app/build/reports/jacoco/jacocoTestReport/html/index.html | grep -o 'Total[^%]*%' -# artifacts: -# paths: -# - ./app/build/reports/jacoco/jacocoTestReport/ -# expire_in: 1 week + artifacts: + paths: + - ./app/build/reports/jacoco/jacocoTestReport/ + expire_in: 1 week diff --git a/app/build.gradle b/app/build.gradle index e095cc94..e0ae51bf 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -38,17 +38,39 @@ android { test.java.srcDirs += 'src/test/java' androidTest.java.srcDirs += 'src/androidTest/java' } + testBuildType "staging" buildTypes { debug { + + } + staging { + initWith debug testCoverageEnabled true + + // These values are first looked for in the env variables, and, if not found there, + // in the local.properties file (which is not checked into version control of course!). + + // If you are not running the integration tests, you can just set them to dummy values + // in local.properties or comment the buildConfigField lines + + def localProperties = new Properties() + if (rootProject.file("local.properties").exists()) { + localProperties.load(new FileInputStream(rootProject.file("local.properties"))) + } + + buildConfigField "String", "USER_ID", System.getenv("USER_ID") ?: localProperties['USER_ID'] + buildConfigField "String", "INSTANCE_URI", System.getenv("INSTANCE_URI") ?: localProperties['INSTANCE_URI'] + buildConfigField "String", "ACCESS_TOKEN", System.getenv("ACCESS_TOKEN") ?: localProperties['ACCESS_TOKEN'] + buildConfigField "String", "REFRESH_TOKEN", System.getenv("REFRESH_TOKEN") ?: localProperties['REFRESH_TOKEN'] + buildConfigField "String", "CLIENT_ID", System.getenv("CLIENT_ID") ?: localProperties['CLIENT_ID'] + buildConfigField "String", "CLIENT_SECRET", System.getenv("CLIENT_SECRET") ?: localProperties['CLIENT_SECRET'] } release { minifyEnabled true shrinkResources true - useProguard true proguardFiles 'proguard-rules.pro' } } @@ -110,7 +132,7 @@ dependencies { */ - implementation 'com.google.android.material:material:1.2.1' + implementation 'com.google.android.material:material:1.3.0' //Dagger (dependency injection) implementation 'com.google.dagger:dagger-android:2.30.1' @@ -167,7 +189,8 @@ dependencies { */ // debugImplementation required vs testImplementation: https://issuetracker.google.com/issues/128612536 - debugImplementation("androidx.fragment:fragment-testing:1.2.5") { + //noinspection FragmentGradleConfiguration + stagingImplementation("androidx.fragment:fragment-testing:1.3.0") { exclude group:'androidx.test', module:'monitor' } @@ -196,7 +219,7 @@ tasks.withType(Test) { } -task jacocoTestReport(type: JacocoReport, dependsOn: ['connectedDebugAndroidTest', 'testDebugUnitTest', 'createDebugCoverageReport']) { +task jacocoTestReport(type: JacocoReport, dependsOn: ['connectedStagingAndroidTest', 'testStagingUnitTest', 'createStagingCoverageReport']) { reports { xml.enabled = true @@ -210,9 +233,9 @@ task jacocoTestReport(type: JacocoReport, dependsOn: ['connectedDebugAndroidTest getClassDirectories().from(files([kotlinDebugTree])) getExecutionData().from(fileTree(dir: project.buildDir, includes: [ - 'outputs/code_coverage/debugAndroidTest/connected/*coverage.ec', + 'outputs/code_coverage/stagingAndroidTest/connected/*coverage.ec', - 'jacoco/testDebugUnitTest.exec' + 'jacoco/testStagingUnitTest.exec' ])) } \ No newline at end of file diff --git a/app/licenses.yml b/app/licenses.yml index 3716a9bd..013f1a60 100644 --- a/app/licenses.yml +++ b/app/licenses.yml @@ -765,3 +765,10 @@ license: The Apache Software License, Version 2.0 licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt url: https://github.com/ongakuer/CircleIndicator +- artifact: androidx.dynamicanimation:dynamicanimation:+ + name: dynamicanimation + copyrightHolder: Google Inc + license: The Apache Software License, Version 2.0 + licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt + url: http://developer.android.com/tools/extras/support-library.html + diff --git a/app/src/androidTest/java/com/h/pixeldroid/CameraTest.kt b/app/src/androidTest/java/com/h/pixeldroid/CameraTest.kt index 66835e54..144cacd5 100644 --- a/app/src/androidTest/java/com/h/pixeldroid/CameraTest.kt +++ b/app/src/androidTest/java/com/h/pixeldroid/CameraTest.kt @@ -93,9 +93,6 @@ class CameraTest { Thread.sleep(1000) Intents.intended(expectedIntent) - - - } @Test @@ -105,6 +102,9 @@ class CameraTest { fragment.view?.findViewById(R.id.camera_switch_button)?.performClick() } Thread.sleep(1000) + + //FIXME this assert doesn't actually do anything... + // All this test really does is make sure it doesn't crash scenario.onFragment { fragment -> assert(!fragment.isHidden) } diff --git a/app/src/androidTest/java/com/h/pixeldroid/DrawerMenuTest.kt b/app/src/androidTest/java/com/h/pixeldroid/DrawerMenuTest.kt index a23d3869..8f60e387 100644 --- a/app/src/androidTest/java/com/h/pixeldroid/DrawerMenuTest.kt +++ b/app/src/androidTest/java/com/h/pixeldroid/DrawerMenuTest.kt @@ -12,12 +12,8 @@ import androidx.test.espresso.matcher.ViewMatchers.* import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.platform.app.InstrumentationRegistry.getInstrumentation import androidx.test.uiautomator.UiDevice +import com.h.pixeldroid.testUtility.* import com.h.pixeldroid.utils.db.AppDatabase -import com.h.pixeldroid.utils.db.entities.InstanceDatabaseEntity -import com.h.pixeldroid.utils.db.entities.UserDatabaseEntity -import com.h.pixeldroid.testUtility.MockServer -import com.h.pixeldroid.testUtility.clearData -import com.h.pixeldroid.testUtility.initDB import org.junit.After import org.junit.Before import org.junit.Rule @@ -28,7 +24,6 @@ import org.junit.runner.RunWith @RunWith(AndroidJUnit4::class) class DrawerMenuTest { - private lateinit var mockServer: MockServer private lateinit var db: AppDatabase private lateinit var context: Context @@ -38,33 +33,15 @@ class DrawerMenuTest { @Before fun before(){ - mockServer = MockServer() - mockServer.start() - val baseUrl = mockServer.getUrl() - context = ApplicationProvider.getApplicationContext() db = initDB(context) db.clearAllTables() db.instanceDao().insertInstance( - InstanceDatabaseEntity( - uri = baseUrl.toString(), - title = "PixelTest" - ) + testiTestoInstance ) db.userDao().insertUser( - UserDatabaseEntity( - user_id = "123", - instance_uri = baseUrl.toString(), - username = "Testi", - display_name = "Testi Testo", - avatar_static = "some_avatar_url", - isActive = true, - accessToken = "token", - refreshToken = "refreshToken", - clientId = "clientId", - clientSecret = "clientSecret" - ) + testiTesto ) db.close() @@ -78,7 +55,6 @@ class DrawerMenuTest { @After fun after() { clearData() - mockServer.stop() } @Test @@ -132,9 +108,11 @@ class DrawerMenuTest { onView(withText(R.string.menu_account)).perform(click()) // Check that profile activity was opened. onView(withId(R.id.editButton)).check(matches(isDisplayed())) - val followersText = context.resources.getQuantityString(R.plurals.nb_followers, 68) + val followersText = context.resources.getQuantityString(R.plurals.nb_followers, 2, 2) onView(withText(followersText)).perform(click()) - onView(withText("Dobios")).check(matches(isDisplayed())) + + waitForView(R.id.account_entry_avatar) + onView(withText("PixelDroid Developer")).check(matches(isDisplayed())) } @Test @@ -143,9 +121,11 @@ class DrawerMenuTest { onView(withText(R.string.menu_account)).perform(click()) // Check that profile activity was opened. onView(withId(R.id.editButton)).check(matches(isDisplayed())) - val followingText = context.resources.getQuantityString(R.plurals.nb_followers, 27) + val followingText = context.resources.getQuantityString(R.plurals.nb_following, 3, 3) onView(withText(followingText)).perform(click()) - onView(withText("Dobios")).check(matches(isDisplayed())) + + waitForView(R.id.account_entry_avatar) + onView(withText("@User 1")).check(matches(isDisplayed())) } /*@Test @@ -160,31 +140,38 @@ class DrawerMenuTest { fun clickFollowers() { // Open My Profile from drawer onView(withText(R.string.menu_account)).perform(click()) - Thread.sleep(1000) + + waitForView(R.id.nbFollowersTextView) // Open followers list onView(withId(R.id.nbFollowersTextView)).perform(click()) - Thread.sleep(1000) - // Open follower's profile - onView(withText("ete2")).perform(click()) - Thread.sleep(1000) - onView(withId(R.id.accountNameTextView)).check(matches(withText("Christian"))) + waitForView(R.id.account_entry_avatar) + + // Open follower's profile + onView(withText("@pixeldroid")).perform(click()) + + waitForView(R.id.profilePictureImageView) + + onView(withId(R.id.accountNameTextView)).check(matches(withText("PixelDroid Developer"))) } @Test fun clickFollowing() { // Open My Profile from drawer onView(withText(R.string.menu_account)).perform(click()) - Thread.sleep(1000) + waitForView(R.id.nbFollowersTextView) + // Open followers list onView(withId(R.id.nbFollowingTextView)).perform(click()) - Thread.sleep(1000) - // Open following's profile - onView(withText("Dobios")).perform(click()) - Thread.sleep(1000) - onView(withId(R.id.accountNameTextView)).check(matches(withText("Andrew Dobis"))) + waitForView(R.id.account_entry_avatar) + + // Open following's profile + onView(withText("@user2")).perform(click()) + waitForView(R.id.profilePictureImageView) + + onView(withId(R.id.accountNameTextView)).check(matches(withText("User 2"))) } @Test diff --git a/app/src/androidTest/java/com/h/pixeldroid/EditPhotoTest.kt b/app/src/androidTest/java/com/h/pixeldroid/EditPhotoTest.kt index 1193e192..c5868a97 100644 --- a/app/src/androidTest/java/com/h/pixeldroid/EditPhotoTest.kt +++ b/app/src/androidTest/java/com/h/pixeldroid/EditPhotoTest.kt @@ -25,8 +25,10 @@ import com.google.android.material.tabs.TabLayout import com.h.pixeldroid.postCreation.photoEdit.PhotoEditActivity import com.h.pixeldroid.postCreation.photoEdit.ThumbnailAdapter import com.h.pixeldroid.settings.AboutActivity -import com.h.pixeldroid.testUtility.CustomMatchers import com.h.pixeldroid.testUtility.clearData +import com.h.pixeldroid.testUtility.clickChildViewWithId +import com.h.pixeldroid.testUtility.slowSwipeLeft +import com.h.pixeldroid.testUtility.waitForView import org.hamcrest.CoreMatchers.allOf import org.junit.* import org.junit.Assert.assertTrue @@ -72,7 +74,7 @@ class EditPhotoTest { activityScenario = ActivityScenario.launch(intent).onActivity{a -> activity = a} - Thread.sleep(1000) + waitForView(R.id.coordinator_edit) } @After @@ -119,14 +121,15 @@ class EditPhotoTest { @Test fun FiltersIsSwipeableAndClickeable() { + waitForView(R.id.thumbnail) Espresso.onView(withId(R.id.recycler_view)) - .perform(actionOnItemAtPosition(1, CustomMatchers.clickChildViewWithId(R.id.thumbnail))) + .perform(actionOnItemAtPosition(1, clickChildViewWithId(R.id.thumbnail))) Thread.sleep(1000) Espresso.onView(withId(R.id.recycler_view)) - .perform(actionOnItemAtPosition(1, CustomMatchers.slowSwipeLeft(false))) + .perform(actionOnItemAtPosition(1, slowSwipeLeft(false))) Thread.sleep(1000) Espresso.onView(withId(R.id.recycler_view)) - .perform(actionOnItemAtPosition(5, CustomMatchers.clickChildViewWithId(R.id.thumbnail))) + .perform(actionOnItemAtPosition(5, clickChildViewWithId(R.id.thumbnail))) Espresso.onView(withId(R.id.image_preview)).check(matches(isDisplayed())) } @@ -134,7 +137,7 @@ class EditPhotoTest { fun BrightnessSaturationContrastTest() { Espresso.onView(withId(R.id.tabs)).perform(selectTabAtPosition(1)) - Thread.sleep(1000) + waitForView(R.id.seekbar_brightness) var change = 5 Espresso.onView(withId(R.id.seekbar_brightness)).perform(setProgress(change)) @@ -159,21 +162,25 @@ class EditPhotoTest { @Test fun saveButton() { + // The save button saves the edits and goes back to the post creation activity. Espresso.onView(withId(R.id.action_save)).perform(click()) - Espresso.onView(withId(com.google.android.material.R.id.snackbar_text)) - .check(matches(withText(R.string.save_image_success))) + Thread.sleep(1000) + assertTrue(activityScenario.state == Lifecycle.State.DESTROYED) } @Test fun backButton() { Espresso.onView(withContentDescription(R.string.abc_action_bar_up_description)).perform(click()) + Thread.sleep(1000) assertTrue(activityScenario.state == Lifecycle.State.DESTROYED) } @Test fun croppingIsPossible() { Espresso.onView(withId(R.id.cropImageButton)).perform(click()) - Thread.sleep(1000) + + waitForView(R.id.menu_crop) + Espresso.onView(withId(R.id.menu_crop)).perform(click()) Espresso.onView(withId(R.id.image_preview)).check(matches(isDisplayed())) } diff --git a/app/src/androidTest/java/com/h/pixeldroid/HomeFeedTest.kt b/app/src/androidTest/java/com/h/pixeldroid/HomeFeedTest.kt index 98f340c6..ae7cb737 100644 --- a/app/src/androidTest/java/com/h/pixeldroid/HomeFeedTest.kt +++ b/app/src/androidTest/java/com/h/pixeldroid/HomeFeedTest.kt @@ -12,19 +12,8 @@ import androidx.test.espresso.matcher.ViewMatchers.* import androidx.test.ext.junit.runners.AndroidJUnit4 import com.google.android.material.tabs.TabLayout import com.h.pixeldroid.utils.db.AppDatabase -import com.h.pixeldroid.utils.db.entities.InstanceDatabaseEntity -import com.h.pixeldroid.utils.db.entities.UserDatabaseEntity import com.h.pixeldroid.posts.StatusViewHolder -import com.h.pixeldroid.testUtility.CustomMatchers.Companion.atPosition -import com.h.pixeldroid.testUtility.CustomMatchers.Companion.clickChildViewWithId -import com.h.pixeldroid.testUtility.CustomMatchers.Companion.first -import com.h.pixeldroid.testUtility.CustomMatchers.Companion.getText -import com.h.pixeldroid.testUtility.CustomMatchers.Companion.second -import com.h.pixeldroid.testUtility.CustomMatchers.Companion.slowSwipeUp -import com.h.pixeldroid.testUtility.CustomMatchers.Companion.typeTextInViewWithId -import com.h.pixeldroid.testUtility.MockServer -import com.h.pixeldroid.testUtility.clearData -import com.h.pixeldroid.testUtility.initDB +import com.h.pixeldroid.testUtility.* import org.hamcrest.CoreMatchers.not import org.junit.After import org.junit.Before @@ -37,7 +26,6 @@ import org.junit.runner.RunWith @RunWith(AndroidJUnit4::class) class HomeFeedTest { - private lateinit var mockServer: MockServer private lateinit var activityScenario: ActivityScenario private lateinit var db: AppDatabase private lateinit var context: Context @@ -47,31 +35,14 @@ class HomeFeedTest { @Before fun before(){ - mockServer = MockServer() - mockServer.start() - val baseUrl = mockServer.getUrl() context = ApplicationProvider.getApplicationContext() db = initDB(context) db.clearAllTables() db.instanceDao().insertInstance( - InstanceDatabaseEntity( - uri = baseUrl.toString(), - title = "PixelTest" - ) + testiTestoInstance ) db.userDao().insertUser( - UserDatabaseEntity( - user_id = "123", - instance_uri = baseUrl.toString(), - username = "Testi", - display_name = "Testi Testo", - avatar_static = "some_avatar_url", - isActive = true, - accessToken = "token", - refreshToken = "refreshToken", - clientId = "clientId", - clientSecret = "clientSecret" - ) + testiTesto ) db.close() activityScenario = ActivityScenario.launch(MainActivity::class.java) @@ -79,13 +50,12 @@ class HomeFeedTest { @After fun after() { clearData() - mockServer.stop() } @Test fun clickingTabOnAlbumShowsNextPhoto() { //Wait for the feed to load - Thread.sleep(1000) + waitForView(R.id.postTabs) activityScenario.onActivity { a -> run { @@ -95,6 +65,45 @@ class HomeFeedTest { } onView(first(withId(R.id.postTabs))).check(matches(isDisplayed())) } +/* + @Test + fun clickingReblogButtonWorks() { + onView(withId(R.id.list)) + .perform(actionOnItemAtPosition + (0, clickChildViewWithId(R.id.reblogger))) + onView(withId(R.id.list)) + .perform(actionOnItemAtPosition + (0, clickChildViewWithId(R.id.reblogger))) + onView(first(withId(R.id.nshares))) + .check(matches(withText(getText(first(withId(R.id.nshares)))))) + } + + @Test + fun doubleTapLikerWorks() { + Thread.sleep(1000) + //Get initial like count + val likes = getText(first(withId(R.id.nlikes))) + val nLikes = likes!!.split(" ")[0].toInt() + + //Remove sensitive media warning + onView(withId(R.id.list)) + .perform(actionOnItemAtPosition + (0, clickChildViewWithId(R.id.sensitiveWarning))) + Thread.sleep(100) + + //Like the post + onView(withId(R.id.list)) + .perform(actionOnItemAtPosition + (0, clickChildViewWithId(R.id.postPicture))) + onView(withId(R.id.list)) + .perform(actionOnItemAtPosition + (0, clickChildViewWithId(R.id.postPicture))) + //... + Thread.sleep(100) + + //Profit + onView(first(withId(R.id.nlikes))).check(matches((withText("${nLikes + 1} Likes")))) + } @Test fun clickingLikeButtonWorks() { @@ -114,10 +123,12 @@ class HomeFeedTest { actionOnItemAtPosition(2, clickChildViewWithId(R.id.liker)) ) onView((withId(R.id.list))).check(matches(isDisplayed())) - } + }*/ @Test fun clickingUsernameOpensProfile() { + waitForView(R.id.username) + onView(withId(R.id.list)).perform( actionOnItemAtPosition(0, clickChildViewWithId(R.id.username)) ) @@ -126,26 +137,18 @@ class HomeFeedTest { @Test fun clickingProfilePicOpensProfile() { + waitForView(R.id.profilePic) + onView(withId(R.id.list)).perform( actionOnItemAtPosition(0, clickChildViewWithId(R.id.profilePic)) ) onView(withId(R.id.accountNameTextView)).check(matches(isDisplayed())) } - @Test - fun clickingReblogButtonWorks() { - onView(withId(R.id.list)) - .perform(actionOnItemAtPosition - (0, clickChildViewWithId(R.id.reblogger))) - onView(withId(R.id.list)) - .perform(actionOnItemAtPosition - (0, clickChildViewWithId(R.id.reblogger))) - onView(first(withId(R.id.nshares))) - .check(matches(withText(getText(first(withId(R.id.nshares)))))) - } - @Test fun clickingMentionOpensProfile() { + waitForView(R.id.description) + onView(withId(R.id.list)).perform( actionOnItemAtPosition(0, clickChildViewWithId(R.id.description)) ) @@ -159,7 +162,7 @@ class HomeFeedTest { ) onView(withId(R.id.list)).check(matches(isDisplayed())) } -*/ + @Test fun clickingCommentButtonOpensCommentSection() { @@ -211,20 +214,19 @@ class HomeFeedTest { Thread.sleep(1000) onView(first(withId(R.id.commentContainer))) .check(matches(hasDescendant(withId(R.id.comment)))) - } + }*/ @Test fun performClickOnSensitiveWarning() { + waitForView(R.id.username) + onView(withId(R.id.list)).perform(scrollToPosition(1)) - Thread.sleep(1000) onView(second(withId(R.id.sensitiveWarning))).check(matches(withEffectiveVisibility(Visibility.VISIBLE))) - Thread.sleep(1000) onView(withId(R.id.list)) .perform(actionOnItemAtPosition (1, clickChildViewWithId(R.id.sensitiveWarning))) - Thread.sleep(1000) onView(withId(R.id.list)) .check(matches(atPosition(1, not(withId(R.id.sensitiveWarning))))) @@ -232,45 +234,19 @@ class HomeFeedTest { @Test fun performClickOnSensitiveWarningTabs() { + waitForView(R.id.username) + onView(withId(R.id.list)).perform(scrollToPosition(0)) - Thread.sleep(1000) onView(first(withId(R.id.sensitiveWarning))).check(matches(withEffectiveVisibility(Visibility.VISIBLE))) - Thread.sleep(1000) onView(withId(R.id.list)) .perform(actionOnItemAtPosition (0, clickChildViewWithId(R.id.sensitiveWarning))) - Thread.sleep(1000) onView(first(withId(R.id.sensitiveWarning))).check(matches(withEffectiveVisibility(Visibility.GONE))) } - @Test - fun doubleTapLikerWorks() { - //Get initial like count - val likes = getText(first(withId(R.id.nlikes))) - val nlikes = likes!!.split(" ")[0].toInt() - - //Remove sensitive media warning - onView(withId(R.id.list)) - .perform(actionOnItemAtPosition - (0, clickChildViewWithId(R.id.sensitiveWarning))) - Thread.sleep(100) - - //Like the post - onView(withId(R.id.list)) - .perform(actionOnItemAtPosition - (0, clickChildViewWithId(R.id.postPicture))) - onView(withId(R.id.list)) - .perform(actionOnItemAtPosition - (0, clickChildViewWithId(R.id.postPicture))) - //... - Thread.sleep(100) - - //Profit - onView(first(withId(R.id.nlikes))).check(matches((withText("${nlikes + 1} Likes")))) - } /* @Test fun goOfflineShowsPosts() { diff --git a/app/src/androidTest/java/com/h/pixeldroid/IntentTest.kt b/app/src/androidTest/java/com/h/pixeldroid/IntentTest.kt index 38957ee0..2ba72bcd 100644 --- a/app/src/androidTest/java/com/h/pixeldroid/IntentTest.kt +++ b/app/src/androidTest/java/com/h/pixeldroid/IntentTest.kt @@ -30,9 +30,7 @@ import com.h.pixeldroid.posts.StatusViewHolder import com.h.pixeldroid.utils.api.objects.Account import com.h.pixeldroid.utils.api.objects.Account.Companion.ACCOUNT_TAG import com.h.pixeldroid.settings.AboutActivity -import com.h.pixeldroid.testUtility.MockServer -import com.h.pixeldroid.testUtility.clearData -import com.h.pixeldroid.testUtility.initDB +import com.h.pixeldroid.testUtility.* import org.hamcrest.CoreMatchers import org.hamcrest.Matcher import org.hamcrest.Matchers @@ -47,7 +45,6 @@ import org.junit.runner.RunWith @RunWith(AndroidJUnit4::class) class IntentTest { - private lateinit var mockServer: MockServer private lateinit var db: AppDatabase private lateinit var context: Context @@ -62,34 +59,14 @@ class IntentTest { @Before fun before() { - mockServer = MockServer() - mockServer.start() - val baseUrl = mockServer.getUrl() - context = ApplicationProvider.getApplicationContext() db = initDB(context) db.clearAllTables() db.instanceDao().insertInstance( - InstanceDatabaseEntity( - uri = baseUrl.toString(), - title = "PixelTest" - ) + testiTestoInstance ) - db.userDao().insertUser( - UserDatabaseEntity( - user_id = "123", - instance_uri = baseUrl.toString(), - username = "Testi", - display_name = "Testi Testo", - avatar_static = "some_avatar_url", - isActive = true, - accessToken = "token", - refreshToken = "refreshToken", - clientId = "clientId", - clientSecret = "clientSecret" - ) - ) + db.userDao().insertUser(testiTesto) db.close() Intents.init() @@ -100,81 +77,32 @@ class IntentTest { fun clickingMentionOpensProfile() { ActivityScenario.launch(MainActivity::class.java) - val account = Account("1450", "deerbard_photo", "deerbard_photo", - "https://pixelfed.social/deerbard_photo", "deerbard photography", + val account = Account("265626292148375552", "user2", "user2", + "https://testing2.pixeldroid.org/user2", "User 2", "", - "https://pixelfed.social/storage/avatars/000/000/001/450/SMSep5NoabDam1W8UDMh_avatar.png?v=4b227777d4dd1fc61c6f884f48641d02b4d121d3fd328cb08b5531fcacdabf8a", - "https://pixelfed.social/storage/avatars/000/000/001/450/SMSep5NoabDam1W8UDMh_avatar.png?v=4b227777d4dd1fc61c6f884f48641d02b4d121d3fd328cb08b5531fcacdabf8a", + "https://testing2.pixeldroid.org/storage/avatars/default.jpg?v=0", + "https://testing2.pixeldroid.org/storage/avatars/default.jpg?v=0", "", "", false, emptyList(), null, - "2018-08-01T12:58:21.000000Z", 72, 68, 27, + "2021-02-11T23:44:03.000000Z", 0, 1, 1, null, null, false, null) val expectedIntent: Matcher = CoreMatchers.allOf( IntentMatchers.hasExtra(ACCOUNT_TAG, account) ) - Thread.sleep(1000) + waitForView(R.id.description) //Click the mention Espresso.onView(ViewMatchers.withId(R.id.list)) .perform(RecyclerViewActions.actionOnItemAtPosition - (0, clickClickableSpanInDescription("@Dobios"))) + (0, clickClickableSpanInDescription("@user2"))) //Wait a bit Thread.sleep(1000) - //Check that the Profile is shown + //Check that the right intent was launched intended(expectedIntent) } - private fun clickClickableSpanInDescription(textToClick: CharSequence): ViewAction { - return object : ViewAction { - - override fun getConstraints(): Matcher { - return Matchers.instanceOf(TextView::class.java) - } - - override fun getDescription(): String { - return "clicking on a ClickableSpan" - } - - override fun perform(uiController: UiController, view: View) { - val textView = view.findViewById(R.id.description) as TextView - val spannableString = textView.text as SpannableString - - if (spannableString.isEmpty()) { - // TextView is empty, nothing to do - throw NoMatchingViewException.Builder() - .includeViewHierarchy(true) - .withRootView(textView) - .build() - } - - // Get the links inside the TextView and check if we find textToClick - val spans = spannableString.getSpans(0, spannableString.length, ClickableSpan::class.java) - if (spans.isNotEmpty()) { - var spanCandidate: ClickableSpan - for (span: ClickableSpan in spans) { - spanCandidate = span - val start = spannableString.getSpanStart(spanCandidate) - val end = spannableString.getSpanEnd(spanCandidate) - val sequence = spannableString.subSequence(start, end) - if (textToClick.toString() == sequence.toString()) { - span.onClick(textView) - return - } - } - } - - // textToClick not found in TextView - throw NoMatchingViewException.Builder() - .includeViewHierarchy(true) - .withRootView(textView) - .build() - - } - } - } - @Test fun clickEditProfileMakesIntent() { @@ -202,6 +130,5 @@ class IntentTest { fun after() { Intents.release() clearData() - mockServer.stop() } } \ No newline at end of file diff --git a/app/src/androidTest/java/com/h/pixeldroid/LoginActivityOfflineTest.kt b/app/src/androidTest/java/com/h/pixeldroid/LoginActivityOfflineTest.kt index 2e976997..d1ca17c3 100644 --- a/app/src/androidTest/java/com/h/pixeldroid/LoginActivityOfflineTest.kt +++ b/app/src/androidTest/java/com/h/pixeldroid/LoginActivityOfflineTest.kt @@ -1,6 +1,27 @@ package com.h.pixeldroid - /* +import android.content.Context +import androidx.test.core.app.ActivityScenario +import androidx.test.core.app.ApplicationProvider +import androidx.test.espresso.Espresso.onView +import androidx.test.espresso.action.ViewActions.click +import androidx.test.espresso.assertion.ViewAssertions.matches +import androidx.test.espresso.matcher.ViewMatchers.isDisplayed +import androidx.test.espresso.matcher.ViewMatchers.withId +import androidx.test.ext.junit.runners.AndroidJUnit4 +import androidx.test.platform.app.InstrumentationRegistry.getInstrumentation +import androidx.test.uiautomator.UiDevice +import androidx.test.uiautomator.UiSelector +import com.h.pixeldroid.testUtility.clearData +import com.h.pixeldroid.testUtility.initDB +import com.h.pixeldroid.utils.db.AppDatabase +import org.junit.After +import org.junit.Before +import org.junit.Rule +import org.junit.Test +import org.junit.rules.Timeout +import org.junit.runner.RunWith + @RunWith(AndroidJUnit4::class) class LoginActivityOfflineTest { @@ -10,7 +31,7 @@ class LoginActivityOfflineTest { fun switchAirplaneMode() { val device = UiDevice.getInstance(getInstrumentation()) device.openQuickSettings() - device.findObject(UiSelector().textContains("airplane")).click() + device.findObject(UiSelector().textContains("Airplane")).click() device.pressHome() } } @@ -46,6 +67,4 @@ class LoginActivityOfflineTest { db.close() clearData() } -} - - */ \ No newline at end of file +}*/ \ No newline at end of file diff --git a/app/src/androidTest/java/com/h/pixeldroid/LoginActivityOnlineTest.kt b/app/src/androidTest/java/com/h/pixeldroid/LoginActivityOnlineTest.kt index 78530895..dc0a0c73 100644 --- a/app/src/androidTest/java/com/h/pixeldroid/LoginActivityOnlineTest.kt +++ b/app/src/androidTest/java/com/h/pixeldroid/LoginActivityOnlineTest.kt @@ -19,9 +19,10 @@ import androidx.test.ext.junit.runners.AndroidJUnit4 import com.h.pixeldroid.utils.db.AppDatabase import com.h.pixeldroid.utils.db.entities.InstanceDatabaseEntity import com.h.pixeldroid.utils.db.entities.UserDatabaseEntity -import com.h.pixeldroid.testUtility.MockServer import com.h.pixeldroid.testUtility.clearData import com.h.pixeldroid.testUtility.initDB +import com.h.pixeldroid.testUtility.testiTesto +import com.h.pixeldroid.testUtility.testiTestoInstance import org.junit.After import org.junit.Before import org.junit.Rule @@ -35,7 +36,6 @@ class LoginActivityOnlineTest { private lateinit var db: AppDatabase private lateinit var context: Context private lateinit var pref: SharedPreferences - private lateinit var server: MockServer @get:Rule var globalTimeout: Timeout = Timeout.seconds(100) @@ -43,8 +43,6 @@ class LoginActivityOnlineTest { @Before fun setup() { context = ApplicationProvider.getApplicationContext() - server = MockServer() - server.start() context = ApplicationProvider.getApplicationContext() pref = context.getSharedPreferences("com.h.pixeldroid.pref", Context.MODE_PRIVATE) pref.edit().clear().apply() @@ -55,7 +53,6 @@ class LoginActivityOnlineTest { @After fun after() { clearData() - server.stop() } @Test @@ -102,6 +99,7 @@ class LoginActivityOnlineTest { )) } + /* @Test fun correctIntentReturnLoadsMainActivity() { context = ApplicationProvider.getApplicationContext() @@ -109,36 +107,21 @@ class LoginActivityOnlineTest { db.clearAllTables() db.instanceDao().insertInstance( - InstanceDatabaseEntity( - uri = server.getUrl().toString(), - title = "PixelTest" - ) + testiTestoInstance ) - db.userDao().insertUser( - UserDatabaseEntity( - user_id = "123", - instance_uri = server.getUrl().toString(), - username = "Testi", - display_name = "Testi Testo", - avatar_static = "some_avatar_url", - isActive = true, - accessToken = "token", - refreshToken = "refreshToken", - clientId = "clientId", - clientSecret = "clientSecret" - ) - ) + db.userDao().insertUser(testiTesto) db.close() pref.edit() - .putString("domain", server.getUrl().toString()) - .putString("clientID", "test_id") - .putString("clientSecret", "test_secret") + .putString("domain", testiTestoInstance.uri) + .putString("clientID", testiTesto.clientId) + .putString("clientSecret", testiTesto.clientSecret) .apply() - val uri = Uri.parse("oauth2redirect://com.h.pixeldroid?code=test_code") + val uri = Uri.parse("oauth2redirect://com.h.pixeldroid?code=$testiTesto.") val intent = Intent(ACTION_VIEW, uri, context, LoginActivity::class.java) ActivityScenario.launch(intent) Thread.sleep(1000) onView(withId(R.id.main_activity_main_linear_layout)).check(matches(isDisplayed())) } + */ } \ No newline at end of file diff --git a/app/src/androidTest/java/com/h/pixeldroid/LoginCheckIntent.kt b/app/src/androidTest/java/com/h/pixeldroid/LoginCheckIntent.kt index 78219fbc..43a183bf 100644 --- a/app/src/androidTest/java/com/h/pixeldroid/LoginCheckIntent.kt +++ b/app/src/androidTest/java/com/h/pixeldroid/LoginCheckIntent.kt @@ -7,14 +7,20 @@ import androidx.test.espresso.Espresso.onView import androidx.test.espresso.action.ViewActions import androidx.test.espresso.action.ViewActions.click import androidx.test.espresso.action.ViewActions.scrollTo +import androidx.test.espresso.assertion.ViewAssertions.matches import androidx.test.espresso.intent.Intents import androidx.test.espresso.intent.Intents.intended import androidx.test.espresso.intent.matcher.IntentMatchers.hasAction import androidx.test.espresso.intent.matcher.IntentMatchers.hasDataString -import androidx.test.espresso.matcher.ViewMatchers.withId +import androidx.test.espresso.matcher.RootMatchers.isDialog +import androidx.test.espresso.matcher.ViewMatchers.* import androidx.test.ext.junit.runners.AndroidJUnit4 +import androidx.test.platform.app.InstrumentationRegistry.getInstrumentation import androidx.test.rule.ActivityTestRule +import androidx.test.uiautomator.UiDevice +import com.h.pixeldroid.BuildConfig.INSTANCE_URI import com.h.pixeldroid.testUtility.clearData +import com.h.pixeldroid.testUtility.waitForView import org.hamcrest.CoreMatchers.allOf import org.hamcrest.CoreMatchers.containsString import org.hamcrest.Matcher @@ -30,12 +36,13 @@ class LoginCheckIntent { @get:Rule var globalTimeout: Timeout = Timeout.seconds(100) - @get:Rule - val intentsTestRule = ActivityTestRule(LoginActivity::class.java) + + private lateinit var activityScenario: ActivityScenario @Before fun before() { Intents.init() + activityScenario = ActivityScenario.launch(LoginActivity::class.java) } @Test @@ -43,11 +50,16 @@ class LoginCheckIntent { ActivityScenario.launch(LoginActivity::class.java) val expectedIntent: Matcher = allOf( hasAction(ACTION_VIEW), - hasDataString(containsString("pixelfed.de")) + hasDataString(containsString(INSTANCE_URI)) ) - Thread.sleep(1000) - onView(withId(R.id.editText)).perform(scrollTo()).perform(ViewActions.replaceText("pixelfed.de"), ViewActions.closeSoftKeyboard()) + waitForView(R.id.editText) + + onView(withId(R.id.editText)).perform(scrollTo()).perform( + ViewActions.replaceText( + INSTANCE_URI + ), ViewActions.closeSoftKeyboard() + ) onView(withId(R.id.connect_instance_button)).perform(scrollTo()).perform(click()) Thread.sleep(3000) @@ -58,22 +70,20 @@ class LoginCheckIntent { @Test fun launchesInstanceInfo() { ActivityScenario.launch(LoginActivity::class.java) - val expectedIntent: Matcher = allOf( - hasAction(ACTION_VIEW), - hasDataString(containsString("pixelfed.org/join")) - ) onView(withId(R.id.whatsAnInstanceTextView)).perform(scrollTo()).perform(click()) - Thread.sleep(3000) - - intended(expectedIntent) + waitForView(R.id.whats_an_instance_explanation) + onView(withText(R.string.whats_an_instance_explanation)) + .inRoot(isDialog()) + .check(matches(isDisplayed())); } @After fun after() { Intents.release() clearData() + activityScenario.close() } } diff --git a/app/src/androidTest/java/com/h/pixeldroid/MockedServerTest.kt b/app/src/androidTest/java/com/h/pixeldroid/MockedServerTest.kt index 789b44a3..68f548da 100644 --- a/app/src/androidTest/java/com/h/pixeldroid/MockedServerTest.kt +++ b/app/src/androidTest/java/com/h/pixeldroid/MockedServerTest.kt @@ -1,49 +1,44 @@ package com.h.pixeldroid -/* +import android.content.Context +import androidx.test.core.app.ActivityScenario +import androidx.test.core.app.ApplicationProvider +import androidx.test.espresso.Espresso.onView +import androidx.test.espresso.action.ViewActions +import androidx.test.espresso.action.ViewActions.click +import androidx.test.espresso.assertion.ViewAssertions.matches +import androidx.test.espresso.matcher.ViewMatchers.* +import androidx.test.ext.junit.runners.AndroidJUnit4 +import com.google.android.material.tabs.TabLayout +import com.h.pixeldroid.testUtility.* +import com.h.pixeldroid.utils.db.AppDatabase +import org.junit.After +import org.junit.Before +import org.junit.Test +import org.junit.runner.RunWith @RunWith(AndroidJUnit4::class) class MockedServerTest { - private lateinit var mockServer: MockServer private lateinit var activityScenario: ActivityScenario private lateinit var db: AppDatabase private lateinit var context: Context @Before fun before(){ - mockServer = MockServer() - mockServer.start() - val baseUrl = mockServer.getUrl() context = ApplicationProvider.getApplicationContext() db = initDB(context) db.clearAllTables() - db.instanceDao().insertInstance( - InstanceDatabaseEntity( - uri = baseUrl.toString(), - title = "PixelTest" - ) - ) + db.instanceDao().insertInstance(testiTestoInstance) - db.userDao().insertUser( - UserDatabaseEntity( - user_id = "123", - instance_uri = baseUrl.toString(), - username = "Testi", - display_name = "Testi Testo", - avatar_static = "some_avatar_url", - isActive = true, - accessToken = "token" - ) - ) + db.userDao().insertUser(testiTesto) db.close() activityScenario = ActivityScenario.launch(MainActivity::class.java) } @After fun after() { clearData() - mockServer.stop() } /* @Test @@ -59,90 +54,53 @@ class MockedServerTest { Thread.sleep(3000) onView(first(withId(R.id.username))).check(matches(withText("memo"))) } - +*/ @Test fun searchHashtags() { activityScenario.onActivity{ a -> a.findViewById(R.id.tabs).getTabAt(1)?.select() } - Thread.sleep(1000) - onView(withId(R.id.searchEditText)).perform(ViewActions.replaceText("#caturday"), ViewActions.closeSoftKeyboard()) + onView(withId(R.id.search)).perform(typeSearchViewText("#randomNoise")) - onView(withId(R.id.searchButton)).perform(click()) - Thread.sleep(3000) - onView(first(withId(R.id.tag_name))).check(matches(withText("#caturday"))) + waitForView(R.id.tag_name) + + onView(first(withId(R.id.tag_name))).check(matches(withText("#randomNoise"))) } - */ @Test fun openDiscoverPost(){ activityScenario.onActivity{ a -> a.findViewById(R.id.tabs).getTabAt(1)?.select() } - Thread.sleep(1000) - onView(first(withId(R.id.postPreview))).perform(click()) - Thread.sleep(1000) - onView(withId(R.id.username)).check(matches(withText("Arthur"))) + waitForView(R.id.postPreview) + + onView(first(withId(R.id.postPreview))).perform(click()) + + waitForView(R.id.username) + + onView(withId(R.id.username)).check(matches(withSubstring("User "))) } -/* + @Test fun searchAccounts() { activityScenario.onActivity{ a -> a.findViewById(R.id.tabs).getTabAt(1)?.select() } - Thread.sleep(1000) - onView(withId(R.id.searchEditText)).perform(ViewActions.replaceText("@dansup"), ViewActions.closeSoftKeyboard()) + waitForView(R.id.search) - onView(withId(R.id.searchButton)).perform(click()) - Thread.sleep(3000) - onView(first(withId(R.id.account_entry_username))).check(matches(withText("dansup"))) + onView(withId(R.id.search)).perform(typeSearchViewText("@user3")) + + waitForView(R.id.account_entry_username) + + onView(first(withId(R.id.account_entry_username))).check(matches(withText("User 3"))) } - */ - - @Test - fun clickFollowButton() { - //Get initial like count - onView(withId(R.id.list)) - .perform(actionOnItemAtPosition - (0, clickChildViewWithId(R.id.username))) - - Thread.sleep(1000) - - // Unfollow - onView(withId(R.id.followButton)).perform((click())) - Thread.sleep(1000) - onView(withId(R.id.followButton)).check(matches(withText("Follow"))) - - // Follow - onView(withId(R.id.followButton)).perform((click())) - Thread.sleep(1000) - onView(withId(R.id.followButton)).check(matches(withText("Unfollow"))) - } - - @Test - fun clickOtherUserFollowers() { - //Get initial like count - onView(withId(R.id.list)) - .perform(actionOnItemAtPosition - (0, clickChildViewWithId(R.id.username))) - - Thread.sleep(1000) - - // Open followers list - onView(withId(R.id.nbFollowersTextView)).perform((click())) - Thread.sleep(1000) - // Open follower's profile - onView(withText("ete2")).perform((click())) - Thread.sleep(1000) - - onView(withId(R.id.accountNameTextView)).check(matches(withText("Christian"))) - } +/*TODO test notifications (harder since they disappear after 6 months... @Test fun testNotificationsList() { @@ -156,7 +114,7 @@ class MockedServerTest { onView(withId(R.id.view_pager)).perform(ViewActions.swipeDown()) Thread.sleep(1000) - onView(withText("Dobios followed you")).check(matches(withId(R.id.notification_type))) + onView(withText("user2 followed you")).check(matches(withId(R.id.notification_type))) } @Test @@ -222,7 +180,7 @@ class MockedServerTest { Thread.sleep(1000) onView(first(withText("Andrea"))).check(matches(withId(R.id.username))) - } + }*/ @Test fun swipingRightStopsAtHomepage() { @@ -230,7 +188,8 @@ class MockedServerTest { a -> a.findViewById(R.id.tabs).getTabAt(4)?.select() } // go to the last tab - Thread.sleep(1000) + waitForView(R.id.main_activity_main_linear_layout) + onView(withId(R.id.main_activity_main_linear_layout)) .perform(ViewActions.swipeRight()) // notifications .perform(ViewActions.swipeRight()) // camera @@ -246,7 +205,8 @@ class MockedServerTest { a -> a.findViewById(R.id.tabs).getTabAt(0)?.select() } - Thread.sleep(1000) + waitForView(R.id.main_activity_main_linear_layout) + onView(withId(R.id.main_activity_main_linear_layout)) .perform(ViewActions.swipeLeft()) // notifications .perform(ViewActions.swipeLeft()) // camera @@ -262,7 +222,8 @@ class MockedServerTest { a -> a.findViewById(R.id.tabs).getTabAt(4)?.select() } // go to the last tab - Thread.sleep(1000) + waitForView(R.id.view_pager) + onView(withId(R.id.view_pager)) .perform(ViewActions.swipeRight()) // notifications .perform(ViewActions.swipeRight()) // camera @@ -276,7 +237,7 @@ class MockedServerTest { a -> assert(a.findViewById(R.id.tabs).getTabAt(0)?.isSelected ?: false) } } - +/* @Test fun censorMatrices() { val array: FloatArray = floatArrayOf( @@ -287,7 +248,5 @@ class MockedServerTest { assert(censorColorMatrix().equals(ColorMatrix(array))) assert(uncensorColorMatrix().equals(ColorMatrix())) - } -} - -*/ \ No newline at end of file + }*/ +} \ No newline at end of file diff --git a/app/src/androidTest/java/com/h/pixeldroid/PostCreationActivityTest.kt b/app/src/androidTest/java/com/h/pixeldroid/PostCreationActivityTest.kt index e5de4444..c3f33937 100644 --- a/app/src/androidTest/java/com/h/pixeldroid/PostCreationActivityTest.kt +++ b/app/src/androidTest/java/com/h/pixeldroid/PostCreationActivityTest.kt @@ -1,11 +1,41 @@ package com.h.pixeldroid -/* +import android.Manifest +import android.content.ClipData +import android.content.Context +import android.content.Intent +import android.graphics.Bitmap +import android.graphics.Color +import android.net.Uri +import android.util.Log +import android.view.View.VISIBLE +import androidx.core.net.toUri +import androidx.core.os.bundleOf +import androidx.test.core.app.ActivityScenario +import androidx.test.espresso.Espresso.onView +import androidx.test.espresso.action.ViewActions.click +import androidx.test.espresso.assertion.ViewAssertions.matches +import androidx.test.espresso.contrib.RecyclerViewActions +import androidx.test.espresso.matcher.ViewMatchers.isDisplayed +import androidx.test.espresso.matcher.ViewMatchers.withId +import androidx.test.ext.junit.runners.AndroidJUnit4 +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.rule.GrantPermissionRule +import com.h.pixeldroid.postCreation.PostCreationActivity +import com.h.pixeldroid.postCreation.photoEdit.ThumbnailAdapter +import com.h.pixeldroid.settings.AboutActivity +import com.h.pixeldroid.testUtility.* +import com.h.pixeldroid.utils.db.AppDatabase +import org.hamcrest.CoreMatchers.not +import org.junit.* +import org.junit.rules.Timeout +import org.junit.runner.RunWith +import java.io.File + @RunWith(AndroidJUnit4::class) class PostCreationActivityTest { private var testScenario: ActivityScenario? = null - private lateinit var mockServer: MockServer private lateinit var db: AppDatabase private lateinit var context: Context @@ -26,33 +56,19 @@ class PostCreationActivityTest { @Before fun setup() { context = InstrumentationRegistry.getInstrumentation().targetContext - mockServer = MockServer() - mockServer.start() - val baseUrl = mockServer.getUrl() db = initDB(context) db.clearAllTables() db.instanceDao().insertInstance( - InstanceDatabaseEntity( - uri = baseUrl.toString(), - title = "PixelTest" - ) + testiTestoInstance ) db.userDao().insertUser( - UserDatabaseEntity( - user_id = "123", - instance_uri = baseUrl.toString(), - username = "Testi", - display_name = "Testi Testo", - avatar_static = "some_avatar_url", - isActive = true, - accessToken = "token" - ) + testiTesto ) db.close() - var uri1: String = "" - var uri2: String = "" + var uri1: Uri? = null + var uri2: Uri? = null val scenario = ActivityScenario.launch(AboutActivity::class.java) scenario.onActivity { val image1 = Bitmap.createBitmap(500, 500, Bitmap.Config.ARGB_8888) @@ -63,28 +79,32 @@ class PostCreationActivityTest { val file1 = File.createTempFile("temp_img1", ".png") val file2 = File.createTempFile("temp_img2", ".png") file1.writeBitmap(image1) - uri1 = file1.toUri().toString() + uri1 = file1.toUri() file2.writeBitmap(image2) - uri2 = file2.toUri().toString() - Log.d("test", uri1+"\n"+uri2) + uri2 = file2.toUri() } - val intent = Intent(context, PostCreationActivity::class.java).putExtra("pictures_uri", arrayListOf(uri1, uri2)) + val intent = Intent(context, PostCreationActivity::class.java) + + intent.clipData = ClipData("", emptyArray(), ClipData.Item(uri1)) + intent.clipData!!.addItem(ClipData.Item(uri2)) + testScenario = ActivityScenario.launch(intent) } @After fun after() { clearData() - mockServer.stop() } @Test + @Ignore("Annoying to deal with and also sometimes the intent is not working as it should") fun createPost() { onView(withId(R.id.post_creation_send_button)).perform(click()) // should send on main activity - onView(withId(R.id.main_activity_main_linear_layout)).check(matches(isDisplayed())) + Thread.sleep(3000) + onView(withId(R.id.list)).check(matches(isDisplayed())) } - +/* @Test fun errorShown() { testScenario!!.onActivity { a -> a.upload_error.visibility = VISIBLE } @@ -113,9 +133,9 @@ class PostCreationActivityTest { ) ) Thread.sleep(1000) - onView(withId(R.id.action_upload)).perform(click()) + onView(withId(R.id.action_save)).perform(click()) Thread.sleep(1000) - onView(withId(R.id.image_grid)).check(matches(isDisplayed())) + onView(withId(R.id.carousel)).check(matches(isDisplayed())) } @Test @@ -127,5 +147,5 @@ class PostCreationActivityTest { ) ) Thread.sleep(1000) - } -}*/ \ No newline at end of file + }*/ +} \ No newline at end of file diff --git a/app/src/androidTest/java/com/h/pixeldroid/PostCreationFragmentTest.kt b/app/src/androidTest/java/com/h/pixeldroid/PostCreationFragmentTest.kt index 2f2fa227..f5317e69 100644 --- a/app/src/androidTest/java/com/h/pixeldroid/PostCreationFragmentTest.kt +++ b/app/src/androidTest/java/com/h/pixeldroid/PostCreationFragmentTest.kt @@ -17,12 +17,8 @@ import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.platform.app.InstrumentationRegistry import androidx.test.rule.GrantPermissionRule import com.google.android.material.tabs.TabLayout +import com.h.pixeldroid.testUtility.* import com.h.pixeldroid.utils.db.AppDatabase -import com.h.pixeldroid.utils.db.entities.InstanceDatabaseEntity -import com.h.pixeldroid.utils.db.entities.UserDatabaseEntity -import com.h.pixeldroid.testUtility.MockServer -import com.h.pixeldroid.testUtility.clearData -import com.h.pixeldroid.testUtility.initDB import org.hamcrest.Matcher import org.junit.After import org.junit.Before @@ -48,12 +44,12 @@ class PostCreationFragmentTest { onView(withId(R.id.drawer_layout)) .perform(swipeLeft()) .perform(swipeLeft()) - Thread.sleep(300) + waitForView(R.id.photo_view_button) } - // upload intent + // image choosing intent @Test - fun uploadButtonLaunchesGalleryIntent() { + fun galleryButtonLaunchesGalleryIntent() { val expectedIntent: Matcher = hasAction(Intent.ACTION_CHOOSER) intending(expectedIntent) onView(withId(R.id.photo_view_button)).perform(click()) @@ -64,7 +60,6 @@ class PostCreationFragmentTest { @RunWith(AndroidJUnit4::class) class PostFragmentUITests { - private lateinit var mockServer: MockServer private lateinit var context: Context @get:Rule @@ -75,40 +70,21 @@ class PostFragmentUITests { @Before fun setup() { context = InstrumentationRegistry.getInstrumentation().targetContext - mockServer = MockServer() - mockServer.start() - val baseUrl = mockServer.getUrl() db = initDB(context) db.clearAllTables() db.instanceDao().insertInstance( - InstanceDatabaseEntity( - uri = baseUrl.toString(), - title = "PixelTest" - ) + testiTestoInstance ) db.userDao().insertUser( - UserDatabaseEntity( - user_id = "123", - instance_uri = baseUrl.toString(), - username = "Testi", - display_name = "Testi Testo", - avatar_static = "some_avatar_url", - isActive = true, - accessToken = "token", - refreshToken = "refreshToken", - clientId = "clientId", - clientSecret = "clientSecret" - ) + testiTesto ) db.close() - Thread.sleep(300) } @After fun after() { clearData() - mockServer.stop() } @Test @@ -116,7 +92,9 @@ class PostFragmentUITests { ActivityScenario.launch(MainActivity::class.java).onActivity { it.findViewById(R.id.tabs).getTabAt(2)!!.select() } - Thread.sleep(1500) + + waitForView(R.id.photo_view_button) + onView(withId(R.id.photo_view_button)).check(matches(isDisplayed())) onView(withId(R.id.camera_capture_button)).check(matches(isDisplayed())) } diff --git a/app/src/androidTest/java/com/h/pixeldroid/PostTest.kt b/app/src/androidTest/java/com/h/pixeldroid/PostTest.kt index 0daab678..7426a9c0 100644 --- a/app/src/androidTest/java/com/h/pixeldroid/PostTest.kt +++ b/app/src/androidTest/java/com/h/pixeldroid/PostTest.kt @@ -13,14 +13,16 @@ import androidx.test.espresso.matcher.ViewMatchers.* import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.platform.app.InstrumentationRegistry import androidx.test.platform.app.InstrumentationRegistry.getInstrumentation +import com.h.pixeldroid.BuildConfig.INSTANCE_URI import com.h.pixeldroid.posts.PostActivity import com.h.pixeldroid.utils.db.AppDatabase import com.h.pixeldroid.utils.db.entities.InstanceDatabaseEntity import com.h.pixeldroid.utils.db.entities.UserDatabaseEntity import com.h.pixeldroid.utils.api.objects.* -import com.h.pixeldroid.testUtility.MockServer import com.h.pixeldroid.testUtility.clearData import com.h.pixeldroid.testUtility.initDB +import com.h.pixeldroid.testUtility.testiTesto +import com.h.pixeldroid.testUtility.testiTestoInstance import org.hamcrest.CoreMatchers.anyOf import org.hamcrest.Matcher import org.junit.* @@ -34,7 +36,6 @@ class PostTest { private lateinit var context: Context private lateinit var db: AppDatabase - private lateinit var mockServer: MockServer @get:Rule var globalTimeout: Timeout = Timeout.seconds(100) @@ -42,32 +43,13 @@ class PostTest { @Before fun before(){ context = InstrumentationRegistry.getInstrumentation().targetContext - mockServer = MockServer() - mockServer.start() - val baseUrl = mockServer.getUrl() db = initDB(context) db.clearAllTables() db.instanceDao().insertInstance( - InstanceDatabaseEntity( - uri = baseUrl.toString(), - title = "PixelTest" - ) + testiTestoInstance ) - db.userDao().insertUser( - UserDatabaseEntity( - user_id = "123", - instance_uri = baseUrl.toString(), - username = "Testi", - display_name = "Testi Testo", - avatar_static = "some_avatar_url", - isActive = true, - accessToken = "token", - refreshToken = "refreshToken", - clientId = "clientId", - clientSecret = "clientSecret" - ) - ) + db.userDao().insertUser(testiTesto) db.close() Intents.init() } @@ -76,15 +58,15 @@ class PostTest { fun saveToGalleryTestSimplePost() { val attachment = Attachment( id = "12", - url = "https://wiki.gnugen.ch/lib/tpl/gnugen/images/logo_web.png", + url = "$INSTANCE_URI/storage/avatars/default.jpg?v=0", meta = null ) val post = Status( id = "12", account = Account( id = "12", - username = "douze", - url = "https://pixelfed.de/douze", + username = "SQDFSQDF", + url = "$INSTANCE_URI/pixeldroid", ), media_attachments = listOf(attachment) ) @@ -107,12 +89,12 @@ class PostTest { fun saveToGalleryTestAlbum() { val attachment1 = Attachment( id = "12", - url = "https://wiki.gnugen.ch/lib/tpl/gnugen/images/logo_web.png", + url = "$INSTANCE_URI/storage/avatars/default.jpg?v=0", meta = null ) val attachment2 = Attachment( id = "13", - url = "https://wiki.gnugen.ch/lib/tpl/gnugen/images/logo_web.png", + url = "$INSTANCE_URI/storage/avatars/default.jpg?v=0", meta = null ) val post = Status( @@ -120,7 +102,7 @@ class PostTest { account = Account( id = "12", username = "douze", - url = "https://pixelfed.de/douze" + url = "$INSTANCE_URI/pixeldroid", ), media_attachments = listOf(attachment1, attachment2) ) @@ -143,18 +125,18 @@ class PostTest { fun shareTestSimplePost() { val expectedIntent: Matcher = IntentMatchers.hasAction(Intent.ACTION_CHOOSER) val attachment = Attachment( - id = "12", - url = "https://wiki.gnugen.ch/lib/tpl/gnugen/images/logo_web.png", + id = "12", + url = "$INSTANCE_URI/storage/avatars/default.jpg?v=0", meta = null ) val post = Status( - id = "12", - account = Account( id = "12", - username = "douze", - url = "https://pixelfed.de/douze", - ), - media_attachments = listOf(attachment) + account = Account( + id = "12", + username = "douze", + url = "$INSTANCE_URI/pixeldroid", + ), + media_attachments = listOf(attachment) ) val intent = Intent(context, PostActivity::class.java) intent.putExtra(Status.POST_TAG, post) @@ -170,22 +152,22 @@ class PostTest { val expectedIntent: Matcher = IntentMatchers.hasAction(Intent.ACTION_CHOOSER) val attachment1 = Attachment( id = "12", - url = "https://wiki.gnugen.ch/lib/tpl/gnugen/images/logo_web.png", + url = "$INSTANCE_URI/storage/avatars/default.jpg?v=0", meta = null ) val attachment2 = Attachment( - id = "13", - url = "https://wiki.gnugen.ch/lib/tpl/gnugen/images/logo_web.png", + id = "13", + url = "$INSTANCE_URI/storage/avatars/default.jpg?v=0", meta = null ) val post = Status( - id = "12", - account = Account( id = "12", - username = "douze", - url = "https://pixelfed.de/douze" - ), - media_attachments = listOf(attachment1, attachment2) + account = Account( + id = "12", + username = "douze", + url = "$INSTANCE_URI/pixeldroid", + ), + media_attachments = listOf(attachment1, attachment2) ) val intent = Intent(context, PostActivity::class.java) intent.putExtra(Status.POST_TAG, post) @@ -249,14 +231,13 @@ class PostTest { in_reply_to_id=null, in_reply_to_account=null, reblog=null, poll=null, card=null, language=null, text=null, favourited=false, reblogged=false, muted=false, bookmarked=false, pinned=false) Assert.assertEquals("${status.reblogs_count} Shares", - status.getNShares(getInstrumentation().targetContext)) + status.getNShares(context)) } @After fun after() { Intents.release() clearData() - mockServer.stop() } } diff --git a/app/src/androidTest/java/com/h/pixeldroid/ProfileTest.kt b/app/src/androidTest/java/com/h/pixeldroid/ProfileTest.kt new file mode 100644 index 00000000..a1acbf45 --- /dev/null +++ b/app/src/androidTest/java/com/h/pixeldroid/ProfileTest.kt @@ -0,0 +1,102 @@ +package com.h.pixeldroid + +import android.content.Context +import android.content.Intent +import androidx.test.core.app.ActivityScenario +import androidx.test.core.app.ApplicationProvider +import androidx.test.espresso.Espresso +import androidx.test.espresso.Espresso.onView +import androidx.test.espresso.action.ViewActions +import androidx.test.espresso.action.ViewActions.swipeDown +import androidx.test.espresso.assertion.ViewAssertions +import androidx.test.espresso.contrib.RecyclerViewActions +import androidx.test.espresso.matcher.ViewMatchers +import androidx.test.espresso.matcher.ViewMatchers.withId +import androidx.test.ext.junit.runners.AndroidJUnit4 +import com.h.pixeldroid.postCreation.PostCreationActivity +import com.h.pixeldroid.profile.ProfileActivity +import com.h.pixeldroid.testUtility.* +import com.h.pixeldroid.utils.api.objects.Account +import com.h.pixeldroid.utils.db.AppDatabase +import okhttp3.internal.wait +import org.junit.After +import org.junit.Before +import org.junit.Test +import org.junit.runner.RunWith +import java.io.Serializable + +@RunWith(AndroidJUnit4::class) +class ProfileTest { + private lateinit var activityScenario: ActivityScenario + private lateinit var db: AppDatabase + private lateinit var context: Context + + @Before + fun before(){ + context = ApplicationProvider.getApplicationContext() + db = initDB(context) + db.clearAllTables() + db.instanceDao().insertInstance(testiTestoInstance) + + db.userDao().insertUser(testiTesto) + db.close() + + val intent = Intent(context, ProfileActivity::class.java) + val account = Account(id = "265472486651596800", username = "pixeldroid", acct = "pixeldroid", url = "https://testing2.pixeldroid.org/pixeldroid", display_name = "PixelDroid Developer", avatar = "https://testing2.pixeldroid.org/storage/avatars/default.jpg?v=0", avatar_static = "https://testing2.pixeldroid.org/storage/avatars/default.jpg?v=0", locked = false, emojis = arrayListOf(), discoverable = null, created_at = "2021-02-11T13:32:53.000000Z", statuses_count = 1, followers_count = 1, following_count = 1, moved = null, fields = null, bot = false, source = null) + intent.putExtra(Account.ACCOUNT_TAG, account) + activityScenario = ActivityScenario.launch(intent) + onView(withId(R.id.profileRefreshLayout)).perform(swipeDown()) + Thread.sleep(2000) + } + @After + fun after() { + clearData() + } + + + @Test + fun clickFollowButton() { + if (onView(ViewMatchers.withText("Unfollow")).isDisplayed()) { + //Currently following + + // Unfollow + follow("Follow") + + // Follow + follow("Unfollow") + } else { + //Currently not following + + // Follow + follow("Unfollow") + + // Unfollow + follow("Follow") + } + } + + private fun follow(follow_or_unfollow: String){ + onView(withId(R.id.followButton)).perform((ViewActions.click())) + Thread.sleep(1000) + onView(withId(R.id.followButton)).check(ViewAssertions.matches(ViewMatchers.withText(follow_or_unfollow))) + } + + + + @Test + fun clickOtherUserFollowers() { + // Open followers list + onView(withId(R.id.nbFollowersTextView)).perform((ViewActions.click())) + + waitForView(R.id.account_entry_username) + + // Open follower's profile + onView(ViewMatchers.withText("testi testo")).perform((ViewActions.click())) + + waitForView(R.id.editButton) + + //Check that our own profile opened + onView(withId(R.id.editButton)).check(ViewAssertions.matches(ViewMatchers.isDisplayed())) + } + +} \ No newline at end of file diff --git a/app/src/androidTest/java/com/h/pixeldroid/testUtility/CustomMatchers.kt b/app/src/androidTest/java/com/h/pixeldroid/testUtility/CustomMatchers.kt index a4aa3896..de1ce3f2 100644 --- a/app/src/androidTest/java/com/h/pixeldroid/testUtility/CustomMatchers.kt +++ b/app/src/androidTest/java/com/h/pixeldroid/testUtility/CustomMatchers.kt @@ -1,153 +1,284 @@ package com.h.pixeldroid.testUtility +import android.text.SpannableString +import android.text.style.ClickableSpan import android.view.View import android.widget.EditText import android.widget.TextView +import androidx.appcompat.widget.SearchView import androidx.recyclerview.widget.RecyclerView -import androidx.test.espresso.Espresso -import androidx.test.espresso.UiController -import androidx.test.espresso.ViewAction +import androidx.test.espresso.* import androidx.test.espresso.action.* +import androidx.test.espresso.assertion.ViewAssertions.matches import androidx.test.espresso.matcher.BoundedMatcher import androidx.test.espresso.matcher.ViewMatchers +import androidx.test.espresso.matcher.ViewMatchers.* +import androidx.test.espresso.util.HumanReadables +import androidx.test.espresso.util.TreeIterables +import com.h.pixeldroid.R import org.hamcrest.BaseMatcher +import org.hamcrest.CoreMatchers.allOf import org.hamcrest.Description import org.hamcrest.Matcher +import org.hamcrest.Matchers +import java.util.concurrent.TimeoutException -abstract class CustomMatchers { - companion object { - fun first(matcher: Matcher): Matcher? { - return object : BaseMatcher() { - var isFirst = true - override fun describeTo(description: org.hamcrest.Description?) { - description?.appendText("first matching item") - } +fun ViewInteraction.isDisplayed(): Boolean { + return try { + check(matches(ViewMatchers.isDisplayed())) + true + } catch (e: NoMatchingViewException) { + false + } +} - override fun matches(item: Any?): Boolean { - if (isFirst && matcher.matches(item)) { - isFirst = false - return true +/** + * Waits for a view to appear in the hierarchy + * Doesn't work if the root changes (since it operates on the root!) + * @param viewId The id of the view to wait for. + */ +fun waitForView(viewId: Int) { + Espresso.onView(isRoot()).perform(waitForViewViewAction(viewId)) +} + +/** + * This ViewAction tells espresso to wait till a certain view is found in the view hierarchy. + * @param viewId The id of the view to wait for. + */ +private fun waitForViewViewAction(viewId: Int): ViewAction { + // The maximum time which espresso will wait for the view to show up (in milliseconds) + val timeOut = 5000 + return object : ViewAction { + override fun getConstraints(): Matcher { + return isRoot() + } + + override fun getDescription(): String { + return "wait for a specific view with id $viewId; during $timeOut millis." + } + + override fun perform(uiController: UiController, rootView: View) { + uiController.loopMainThreadUntilIdle() + val startTime = System.currentTimeMillis() + val endTime = startTime + timeOut + val viewMatcher = withId(viewId) + + do { + // Iterate through all views on the screen and see if the view we are looking for is there already + for (child in TreeIterables.breadthFirstViewTraversal(rootView)) { + // found view with required ID + if (viewMatcher.matches(child)) { + return } + } + // Loops the main thread for a specified period of time. + // Control may not return immediately, instead it'll return after the provided delay has passed and the queue is in an idle state again. + uiController.loopMainThreadForAtLeast(100) + } while (System.currentTimeMillis() < endTime) // in case of a timeout we throw an exception -> test fails + throw PerformException.Builder() + .withCause(TimeoutException()) + .withActionDescription(this.description) + .withViewDescription(HumanReadables.describe(rootView)) + .build() + } + } +} + +fun clickClickableSpanInDescription(textToClick: CharSequence): ViewAction { + return object : ViewAction { + + override fun getConstraints(): Matcher { + return Matchers.instanceOf(TextView::class.java) + } + + override fun getDescription(): String { + return "clicking on a ClickableSpan" + } + + override fun perform(uiController: UiController, view: View) { + val textView = view.findViewById(R.id.description) as TextView + val spannableString = SpannableString(textView.text) + + if (spannableString.isEmpty()) { + // TextView is empty, nothing to do + throw NoMatchingViewException.Builder() + .includeViewHierarchy(true) + .withRootView(textView) + .build() + } + + // Get the links inside the TextView and check if we find textToClick + val spans = spannableString.getSpans(0, spannableString.length, ClickableSpan::class.java) + if (spans.isNotEmpty()) { + var spanCandidate: ClickableSpan + for (span: ClickableSpan in spans) { + spanCandidate = span + val start = spannableString.getSpanStart(spanCandidate) + val end = spannableString.getSpanEnd(spanCandidate) + val sequence = spannableString.subSequence(start, end) + if (textToClick.toString() == sequence.toString()) { + span.onClick(textView) + return + } + } + } + + // textToClick not found in TextView + throw NoMatchingViewException.Builder() + .includeViewHierarchy(true) + .withRootView(textView) + .build() + + } + } +} + +fun typeSearchViewText(text: String): ViewAction { + return object : ViewAction { + override fun getDescription(): String { + return "Change view text" + } + + override fun getConstraints(): Matcher { + return allOf(isDisplayed(), isAssignableFrom(SearchView::class.java)) + } + + override fun perform(uiController: UiController?, view: View?) { + (view as SearchView).setQuery(text, true) + } + } +} + +fun first(matcher: Matcher): Matcher { + return object : BaseMatcher() { + var isFirst = true + override fun describeTo(description: org.hamcrest.Description?) { + description?.appendText("first matching item") + } + + override fun matches(item: Any?): Boolean { + if (isFirst && matcher.matches(item)) { + isFirst = false + return true + } + return false + } + + } +} + +fun second(matcher: Matcher): Matcher { + return object : BaseMatcher() { + var isFirst = true + override fun describeTo(description: org.hamcrest.Description?) { + description?.appendText("second matching item") + } + + override fun matches(item: Any?): Boolean { + if (isFirst && matcher.matches(item)) { + isFirst = false + return false + } else if (!isFirst && matcher.matches(item)) + return true + return false + } + + } +} + + +fun atPosition(position: Int, itemMatcher: Matcher): Matcher { + return object : BoundedMatcher(RecyclerView::class.java) { + override fun describeTo(description: Description) { + description.appendText("has item at position $position: ") + itemMatcher.describeTo(description) + } + + override fun matchesSafely(view: RecyclerView): Boolean { + val viewHolder = view.findViewHolderForAdapterPosition(position) + ?: // has no item on such position return false - } - - } - } - - fun second(matcher: Matcher): Matcher? { - return object : BaseMatcher() { - var isFirst = true - override fun describeTo(description: org.hamcrest.Description?) { - description?.appendText("second matching item") - } - - override fun matches(item: Any?): Boolean { - if (isFirst && matcher.matches(item)) { - isFirst = false - return false - } else if (!isFirst && matcher.matches(item)) - return true - return false - } - - } + return itemMatcher.matches(viewHolder.itemView) } + } +} - fun atPosition(position: Int, itemMatcher: Matcher): Matcher? { - return object : BoundedMatcher(RecyclerView::class.java) { - override fun describeTo(description: Description) { - description.appendText("has item at position $position: ") - itemMatcher.describeTo(description) - } - - override fun matchesSafely(view: RecyclerView): Boolean { - val viewHolder = view.findViewHolderForAdapterPosition(position) - ?: // has no item on such position - return false - return itemMatcher.matches(viewHolder.itemView) - } - } - } - - - /** - * @param percent can be 1 or 0 - * 1: swipes all the way up - * 0: swipes half way up - */ - fun slowSwipeUp(percent: Boolean) : ViewAction { - return ViewActions.actionWithAssertions( - GeneralSwipeAction( +/** + * @param percent can be 1 or 0 + * 1: swipes all the way up + * 0: swipes half way up + */ +fun slowSwipeUp(percent: Boolean): ViewAction { + return ViewActions.actionWithAssertions( + GeneralSwipeAction( Swipe.SLOW, GeneralLocation.BOTTOM_CENTER, if (percent) GeneralLocation.TOP_CENTER else GeneralLocation.CENTER, Press.FINGER - ) ) - } + ) +} - /** - * @param percent can be 1 or 0 - * 1: swipes all the way left - * 0: swipes half way left - */ - fun slowSwipeLeft(percent: Boolean) : ViewAction { - return ViewActions.actionWithAssertions( - GeneralSwipeAction( +/** + * @param percent can be 1 or 0 + * 1: swipes all the way left + * 0: swipes half way left + */ +fun slowSwipeLeft(percent: Boolean): ViewAction { + return ViewActions.actionWithAssertions( + GeneralSwipeAction( Swipe.SLOW, GeneralLocation.CENTER_RIGHT, if (percent) GeneralLocation.CENTER_LEFT else GeneralLocation.CENTER, Press.FINGER - ) ) + ) +} + +fun getText(matcher: Matcher?): String? { + val stringHolder = arrayOf(null) + Espresso.onView(matcher).perform(object : ViewAction { + override fun getConstraints(): Matcher { + return ViewMatchers.isAssignableFrom(TextView::class.java) } - fun getText(matcher: Matcher?): String? { - val stringHolder = arrayOf(null) - Espresso.onView(matcher).perform(object : ViewAction { - override fun getConstraints(): Matcher { - return ViewMatchers.isAssignableFrom(TextView::class.java) - } - - override fun getDescription(): String { - return "getting text from a TextView" - } - - override fun perform( - uiController: UiController, - view: View - ) { - val tv = view as TextView //Save, because of check in getConstraints() - stringHolder[0] = tv.text.toString() - } - }) - return stringHolder[0] + override fun getDescription(): String { + return "getting text from a TextView" } - fun clickChildViewWithId(id: Int) = object : ViewAction { - - override fun getConstraints() = null - - override fun getDescription() = "click child view with id $id" - - override fun perform(uiController: UiController, view: View) { - val v = view.findViewById(id) - v.performClick() - } + override fun perform( + uiController: UiController, + view: View, + ) { + val tv = view as TextView //Save, because of check in getConstraints() + stringHolder[0] = tv.text.toString() } + }) + return stringHolder[0] +} - fun typeTextInViewWithId(id: Int, text: String) = object : ViewAction { +fun clickChildViewWithId(id: Int) = object : ViewAction { - override fun getConstraints() = null + override fun getConstraints() = null - override fun getDescription() = "click child view with id $id" + override fun getDescription() = "click child view with id $id" - override fun perform(uiController: UiController, view: View) { - val v = view.findViewById(id) - v.text.append(text) - } - } + override fun perform(uiController: UiController, view: View) { + val v = view.findViewById(id) + v.performClick() + } +} + +fun typeTextInViewWithId(id: Int, text: String) = object : ViewAction { + + override fun getConstraints() = null + + override fun getDescription() = "click child view with id $id" + + override fun perform(uiController: UiController, view: View) { + val v = view.findViewById(id) + v.text.append(text) } } \ No newline at end of file diff --git a/app/src/androidTest/java/com/h/pixeldroid/testUtility/JsonValues.kt b/app/src/androidTest/java/com/h/pixeldroid/testUtility/JsonValues.kt deleted file mode 100644 index ecfb5368..00000000 --- a/app/src/androidTest/java/com/h/pixeldroid/testUtility/JsonValues.kt +++ /dev/null @@ -1,185 +0,0 @@ -package com.h.pixeldroid.testUtility - -import com.google.gson.Gson -import com.h.pixeldroid.utils.api.objects.Application - -class JsonValues { - companion object { - const val likedJson = """{"id":"156491373246287872","created_at":"2020-04-16T20:00:50.000000Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"https:\/\/pixelfed.de\/p\/machintuck\/156491373246287872","url":"https:\/\/pixelfed.de\/p\/machintuck\/156491373246287872","replies_count":1,"reblogs_count":13,"favourites_count":3,"reblogged":false,"favourited":true,"muted":false,"bookmarked":false,"pinned":false,"content":"@Dobios<\/a> @Dante<\/a>","reblog":null,"application":{"name":"web","website":null},"mentions":[{"id":"136800034732773376","url":"https:\/\/pixelfed.de\/Dobios","username":"Dobios","acct":"Dobios"},{"id":"136453537340198912","url":"https:\/\/pixelfed.de\/dante","username":"dante","acct":"dante"}],"tags":[{"name":"mushroom","url":"https:\/\/pixelfed.de\/discover\/tags\/mushroom"},{"name":"commentsstillbroken","url":"https:\/\/pixelfed.de\/discover\/tags\/commentsstillbroken"},{"name":"fixyourapi","url":"https:\/\/pixelfed.de\/discover\/tags\/fixyourapi"},{"name":"pls","url":"https:\/\/pixelfed.de\/discover\/tags\/pls"}],"emojis":[],"card":null,"poll":null,"account":{"id":"145183325781364736","username":"machintuck","acct":"machintuck","display_name":"Arthur","locked":false,"created_at":"2020-03-16T15:06:42.000000Z","followers_count":4,"following_count":4,"statuses_count":5,"note":"","url":"https:\/\/pixelfed.de\/machintuck","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/014\/518\/332\/578\/136\/473\/6\/gbdKtKOhTkNA5UxCzeAQ_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/014\/518\/332\/578\/136\/473\/6\/gbdKtKOhTkNA5UxCzeAQ_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"19228","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/9b4393bfd32c643a265bd1c557b981f167d60969\/lbOqQOMeHLGmhYgehhZUBJ4JvjtKulh83BA97LoP.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/9b4393bfd32c643a265bd1c557b981f167d60969\/lbOqQOMeHLGmhYgehhZUBJ4JvjtKulh83BA97LoP_thumb.jpeg","text_url":null,"meta":null,"description":null}]}""" - const val unlikeJson = """{"id":"156491373246287872","created_at":"2020-04-16T20:00:50.000000Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"https:\/\/pixelfed.de\/p\/machintuck\/156491373246287872","url":"https:\/\/pixelfed.de\/p\/machintuck\/156491373246287872","replies_count":1,"reblogs_count":13,"favourites_count":2,"reblogged":false,"favourited":false,"muted":false,"bookmarked":false,"pinned":false,"content":"@Dobios<\/a> @Dante<\/a>","reblog":null,"application":{"name":"web","website":null},"mentions":[{"id":"136800034732773376","url":"https:\/\/pixelfed.de\/Dobios","username":"Dobios","acct":"Dobios"},{"id":"136453537340198912","url":"https:\/\/pixelfed.de\/dante","username":"dante","acct":"dante"}],"tags":[{"name":"mushroom","url":"https:\/\/pixelfed.de\/discover\/tags\/mushroom"},{"name":"commentsstillbroken","url":"https:\/\/pixelfed.de\/discover\/tags\/commentsstillbroken"},{"name":"fixyourapi","url":"https:\/\/pixelfed.de\/discover\/tags\/fixyourapi"},{"name":"pls","url":"https:\/\/pixelfed.de\/discover\/tags\/pls"}],"emojis":[],"card":null,"poll":null,"account":{"id":"145183325781364736","username":"machintuck","acct":"machintuck","display_name":"Arthur","locked":false,"created_at":"2020-03-16T15:06:42.000000Z","followers_count":4,"following_count":4,"statuses_count":5,"note":"","url":"https:\/\/pixelfed.de\/machintuck","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/014\/518\/332\/578\/136\/473\/6\/gbdKtKOhTkNA5UxCzeAQ_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/014\/518\/332\/578\/136\/473\/6\/gbdKtKOhTkNA5UxCzeAQ_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"19228","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/9b4393bfd32c643a265bd1c557b981f167d60969\/lbOqQOMeHLGmhYgehhZUBJ4JvjtKulh83BA97LoP.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/9b4393bfd32c643a265bd1c557b981f167d60969\/lbOqQOMeHLGmhYgehhZUBJ4JvjtKulh83BA97LoP_thumb.jpeg","text_url":null,"meta":null,"description":null}]}""" - const val mediaUploadResponseJson = """ - { - "id": "22348641", - "type": "image", - "url": "https://files.mastodon.social/media_attachments/files/022/348/641/original/cebc6d51be03e509.jpeg", - "preview_url": "https://files.mastodon.social/media_attachments/files/022/348/641/small/cebc6d51be03e509.jpeg", - "remote_url": null, - "text_url": "https://mastodon.social/media/4Zj6ewxzzzDi0g8JnZQ", - "meta": { - "focus": { - "x": -0.69, - "y": 0.42 - }, - "original": { - "width": 640, - "height": 480, - "size": "640x480", - "aspect": 1.3333333333333333 - }, - "small": { - "width": 461, - "height": 346, - "size": "461x346", - "aspect": 1.3323699421965318 - } - }, - "description": "test uploaded via api", - "blurhash": "UFBWY:8_0Jxv4mx]t8t64.%M-:IUWGWAt6M}" - } - """ - const val accountJson = "{\n" + - " \"id\": \"1450\",\n" + - " \"username\": \"deerbard_photo\",\n" + - " \"acct\": \"deerbard_photo\",\n" + - " \"display_name\": \"deerbard photography\",\n" + - " \"locked\": false,\n" + - " \"created_at\": \"2018-08-01T12:58:21.000000Z\",\n" + - " \"followers_count\": 68,\n" + - " \"following_count\": 27,\n" + - " \"statuses_count\": 72,\n" + - " \"note\": \"\",\n" + - " \"url\": \"https://pixelfed.social/deerbard_photo\",\n" + - " \"avatar\": \"https://pixelfed.social/storage/avatars/000/000/001/450/SMSep5NoabDam1W8UDMh_avatar.png?v=4b227777d4dd1fc61c6f884f48641d02b4d121d3fd328cb08b5531fcacdabf8a\",\n" + - " \"avatar_static\": \"https://pixelfed.social/storage/avatars/000/000/001/450/SMSep5NoabDam1W8UDMh_avatar.png?v=4b227777d4dd1fc61c6f884f48641d02b4d121d3fd328cb08b5531fcacdabf8a\",\n" + - " \"header\": \"\",\n" + - " \"header_static\": \"\",\n" + - " \"emojis\": [],\n" + - " \"moved\": null,\n" + - " \"fields\": null,\n" + - " \"bot\": false,\n" + - " \"software\": \"pixelfed\",\n" + - " \"is_admin\": false\n" + - " }" - - const val feedJson = """[{"id":"156491373246287872","created_at":"2020-04-16T20:00:50.000000Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"","visibility":"public","language":"en","uri":"https:\/\/pixelfed.de\/p\/machintuck\/156491373246287872","url":"https:\/\/pixelfed.de\/p\/machintuck\/156491373246287872","replies_count":1,"reblogs_count":13,"favourites_count":2,"reblogged":false,"favourited":false,"muted":false,"bookmarked":false,"pinned":false,"content":"@Dobios<\/a> @Dante<\/a>","reblog":null,"application":{"name":"web","website":null},"mentions":[{"id":"136800034732773376","url":"https:\/\/pixelfed.de\/Dobios","username":"Dobios","acct":"Dobios"},{"id":"136453537340198912","url":"https:\/\/pixelfed.de\/dante","username":"dante","acct":"dante"}],"tags":[{"name":"mushroom","url":"https:\/\/pixelfed.de\/discover\/tags\/mushroom"},{"name":"commentsstillbroken","url":"https:\/\/pixelfed.de\/discover\/tags\/commentsstillbroken"},{"name":"fixyourapi","url":"https:\/\/pixelfed.de\/discover\/tags\/fixyourapi"},{"name":"pls","url":"https:\/\/pixelfed.de\/discover\/tags\/pls"}],"emojis":[],"card":null,"poll":null,"account":{"id":"145183325781364736","username":"machintuck","acct":"machintuck","display_name":"Arthur","locked":false,"created_at":"2020-03-16T15:06:42.000000Z","followers_count":4,"following_count":4,"statuses_count":5,"note":"","url":"https:\/\/pixelfed.de\/machintuck","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/014\/518\/332\/578\/136\/473\/6\/gbdKtKOhTkNA5UxCzeAQ_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/014\/518\/332\/578\/136\/473\/6\/gbdKtKOhTkNA5UxCzeAQ_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"15887","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/113a3e2124a33b1f5511e531953f5ee48456e0c7\/a1349f5183c2bac7d52880e8f5188df0f3b2d62a\/mvT3nYV6Wdu42Xh56Ny4VYaWU0OzbnC3wjxiqnKS.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/113a3e2124a33b1f5511e531953f5ee48456e0c7\/a1349f5183c2bac7d52880e8f5188df0f3b2d62a\/mvT3nYV6Wdu42Xh56Ny4VYaWU0OzbnC3wjxiqnKS_thumb.jpeg","text_url":null,"meta":null,"description":null}, {"id":"19228","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/9b4393bfd32c643a265bd1c557b981f167d60969\/lbOqQOMeHLGmhYgehhZUBJ4JvjtKulh83BA97LoP.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/9b4393bfd32c643a265bd1c557b981f167d60969\/lbOqQOMeHLGmhYgehhZUBJ4JvjtKulh83BA97LoP_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"140349785193451520","uri":"https:\/\/pixelfed.de\/p\/stephan\/140349785193451520","url":"https:\/\/pixelfed.de\/p\/stephan\/140349785193451520","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"","created_at":"2020-03-03T06:59:56.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":2,"reblogged":null,"favourited":null,"muted":null,"sensitive":true,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"908","username":"stephan","acct":"stephan","display_name":"Stephan","locked":false,"created_at":"2019-03-17T07:46:33.000000Z","followers_count":136,"following_count":25,"statuses_count":136,"note":"Musician, software developer & hobby photographer.","url":"https:\/\/pixelfed.de\/stephan","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/000\/000\/000\/908\/5nQzzsB1mkwKaUqQ9GNN_avatar.png?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/000\/000\/000\/908\/5nQzzsB1mkwKaUqQ9GNN_avatar.png?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"15887","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/113a3e2124a33b1f5511e531953f5ee48456e0c7\/a1349f5183c2bac7d52880e8f5188df0f3b2d62a\/mvT3nYV6Wdu42Xh56Ny4VYaWU0OzbnC3wjxiqnKS.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/113a3e2124a33b1f5511e531953f5ee48456e0c7\/a1349f5183c2bac7d52880e8f5188df0f3b2d62a\/mvT3nYV6Wdu42Xh56Ny4VYaWU0OzbnC3wjxiqnKS_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"0","uri":"https:\/\/pixelfed.de\/p\/fegrimaldi\/140276879742603264","url":"https:\/\/pixelfed.de\/p\/fegrimaldi\/140276879742603264","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"february 2 is the day to give flowers to Iemanj\u00e1. #salvador<\/a> #bahia<\/a> #brazil<\/a> #iemanja<\/a>","created_at":"2020-03-03T02:10:14.000000Z","emojis":[],"replies_count":1,"reblogs_count":0,"favourites_count":1,"reblogged":null,"favourited":null,"muted":null,"sensitive":true,"spoiler_text":"","visibility":"public","mentions":[],"tags":[{"name":"salvador","url":"https:\/\/pixelfed.de\/discover\/tags\/salvador"},{"name":"bahia","url":"https:\/\/pixelfed.de\/discover\/tags\/bahia"},{"name":"brazil","url":"https:\/\/pixelfed.de\/discover\/tags\/brazil"},{"name":"iemanja","url":"https:\/\/pixelfed.de\/discover\/tags\/iemanja"}],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"137257212828585984","username":"fegrimaldi","acct":"fegrimaldi","display_name":"Fernanda Grimaldi","locked":false,"created_at":"2020-02-23T18:11:09.000000Z","followers_count":2,"following_count":7,"statuses_count":2,"note":"a little piece of Bahia in the fediverse.","url":"https:\/\/pixelfed.de\/fegrimaldi","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/013\/725\/721\/282\/858\/598\/4\/oUPBit0TJso1xNhJfFqg_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/013\/725\/721\/282\/858\/598\/4\/oUPBit0TJso1xNhJfFqg_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"15886","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/113a3e2124a33b1f5511e531953f5ee48456e0c7\/feb878b4bd60b85ac840670c6b9c809fd76b628b\/lYMrx0WF8LDqn0vTRgNJaRs7stMKtAXrgzpMrWEr.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/113a3e2124a33b1f5511e531953f5ee48456e0c7\/feb878b4bd60b85ac840670c6b9c809fd76b628b\/lYMrx0WF8LDqn0vTRgNJaRs7stMKtAXrgzpMrWEr_thumb.jpeg","text_url":null,"meta":null,"description":null}]}]""" - const val notificationsJson = "[{\"id\":\"45945\",\"type\":\"favourite\",\"created_at\":\"2020-03-15T14:49:20.000000Z\",\"account\":{\"id\":\"136800034732773376\",\"username\":\"Dobios\",\"acct\":\"Dobios\",\"display_name\":\"Andrew Dobis\",\"locked\":false,\"created_at\":\"2020-02-22T11:54:29.000000Z\",\"followers_count\":2,\"following_count\":1,\"statuses_count\":0,\"note\":\"\",\"url\":\"https:\\/\\/pixelfed.de\\/Dobios\",\"avatar\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"avatar_static\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"header\":\"\",\"header_static\":\"\",\"emojis\":[],\"moved\":null,\"fields\":null,\"bot\":false,\"software\":\"pixelfed\",\"is_admin\":false},\"status\":{\"id\":\"144456497894658048\",\"uri\":\"https:\\/\\/pixelfed.de\\/p\\/dante\\/144456497894658048\",\"url\":\"https:\\/\\/pixelfed.de\\/p\\/dante\\/144456497894658048\",\"in_reply_to_id\":null,\"in_reply_to_account_id\":null,\"reblog\":null,\"content\":\"Saturn V launch\",\"created_at\":\"2020-03-14T14:58:32.000000Z\",\"emojis\":[],\"replies_count\":0,\"reblogs_count\":1,\"favourites_count\":6,\"reblogged\":null,\"favourited\":null,\"muted\":null,\"sensitive\":false,\"spoiler_text\":\"\",\"visibility\":\"public\",\"mentions\":[],\"tags\":[],\"card\":null,\"poll\":null,\"application\":{\"name\":\"web\",\"website\":null},\"language\":null,\"pinned\":null,\"account\":{\"id\":\"136453537340198912\",\"username\":\"Dante\",\"acct\":\"dante\",\"display_name\":\"Dante\",\"locked\":false,\"created_at\":\"2020-02-21T12:57:38.000000Z\",\"followers_count\":3,\"following_count\":4,\"statuses_count\":1,\"note\":\"\",\"url\":\"https:\\/\\/pixelfed.de\\/dante\",\"avatar\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"avatar_static\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"header\":\"\",\"header_static\":\"\",\"emojis\":[],\"moved\":null,\"fields\":null,\"bot\":false,\"software\":\"pixelfed\",\"is_admin\":false},\"media_attachments\":[{\"id\":\"16583\",\"type\":\"image\",\"url\":\"https:\\/\\/pixelfed.de\\/storage\\/m\\/113a3e2124a33b1f5511e531953f5ee48456e0c7\\/0fa8bbe19cc23442034913a7c97fbe4527c1d63a\\/vs2vouJ86OvzxhK9ewhPlfPf4Y9IoQ5CHfiBIqad.jpeg\",\"remote_url\":null,\"preview_url\":\"https:\\/\\/pixelfed.de\\/storage\\/m\\/113a3e2124a33b1f5511e531953f5ee48456e0c7\\/0fa8bbe19cc23442034913a7c97fbe4527c1d63a\\/vs2vouJ86OvzxhK9ewhPlfPf4Y9IoQ5CHfiBIqad_thumb.jpeg\",\"text_url\":null,\"meta\":null,\"description\":null}]}},{\"id\":\"45944\",\"type\":\"follow\",\"created_at\":\"2020-03-15T14:49:11.000000Z\",\"account\":{\"id\":\"136800034732773376\",\"username\":\"Dobios\",\"acct\":\"Dobios\",\"display_name\":\"Andrew Dobis\",\"locked\":false,\"created_at\":\"2020-02-22T11:54:29.000000Z\",\"followers_count\":2,\"following_count\":1,\"statuses_count\":0,\"note\":\"\",\"url\":\"https:\\/\\/pixelfed.de\\/Dobios\",\"avatar\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"avatar_static\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"header\":\"\",\"header_static\":\"\",\"emojis\":[],\"moved\":null,\"fields\":null,\"bot\":false,\"software\":\"pixelfed\",\"is_admin\":false}},{\"id\":\"45942\",\"type\":\"reblog\",\"created_at\":\"2020-03-15T14:41:04.000000Z\",\"account\":{\"id\":\"144813993922531328\",\"username\":\"Clement\",\"acct\":\"Clement\",\"display_name\":\"Andrea\",\"locked\":false,\"created_at\":\"2020-03-15T14:39:06.000000Z\",\"followers_count\":0,\"following_count\":2,\"statuses_count\":0,\"note\":\"\",\"url\":\"https:\\/\\/pixelfed.de\\/Clement\",\"avatar\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"avatar_static\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"header\":\"\",\"header_static\":\"\",\"emojis\":[],\"moved\":null,\"fields\":null,\"bot\":false,\"software\":\"pixelfed\",\"is_admin\":false},\"status\":{\"id\":\"144814478708576256\",\"uri\":\"https:\\/\\/pixelfed.de\\/p\\/Clement\\/144814478708576256\",\"url\":\"https:\\/\\/pixelfed.de\\/p\\/Clement\\/144814478708576256\",\"in_reply_to_id\":null,\"in_reply_to_account_id\":136453537340198912,\"reblog\":null,\"content\":\"\",\"created_at\":\"2020-03-15T14:41:02.000000Z\",\"emojis\":[],\"replies_count\":0,\"reblogs_count\":0,\"favourites_count\":0,\"reblogged\":null,\"favourited\":null,\"muted\":null,\"sensitive\":false,\"spoiler_text\":\"\",\"visibility\":\"public\",\"mentions\":[],\"tags\":[],\"card\":null,\"poll\":null,\"application\":{\"name\":\"web\",\"website\":null},\"language\":null,\"pinned\":null,\"account\":{\"id\":\"144813993922531328\",\"username\":\"Clement\",\"acct\":\"Clement\",\"display_name\":\"Andrea\",\"locked\":false,\"created_at\":\"2020-03-15T14:39:06.000000Z\",\"followers_count\":0,\"following_count\":2,\"statuses_count\":0,\"note\":\"\",\"url\":\"https:\\/\\/pixelfed.de\\/Clement\",\"avatar\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"avatar_static\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"header\":\"\",\"header_static\":\"\",\"emojis\":[],\"moved\":null,\"fields\":null,\"bot\":false,\"software\":\"pixelfed\",\"is_admin\":false}}},{\"id\":\"45941\",\"type\":\"mention\",\"created_at\":\"2020-03-15T14:40:52.000000Z\",\"account\":{\"id\":\"144813993922531328\",\"username\":\"Clement\",\"acct\":\"Clement\",\"display_name\":\"Andrea\",\"locked\":false,\"created_at\":\"2020-03-15T14:39:06.000000Z\",\"followers_count\":0,\"following_count\":2,\"statuses_count\":0,\"note\":\"\",\"url\":\"https:\\/\\/pixelfed.de\\/Clement\",\"avatar\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"avatar_static\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"header\":\"\",\"header_static\":\"\",\"emojis\":[],\"moved\":null,\"fields\":null,\"bot\":false,\"software\":\"pixelfed\",\"is_admin\":false},\"status\":{\"id\":\"144814428691501056\",\"uri\":\"https:\\/\\/pixelfed.de\\/p\\/Clement\\/144814428691501056\",\"url\":\"https:\\/\\/pixelfed.de\\/p\\/Clement\\/144814428691501056\",\"in_reply_to_id\":144456497894658048,\"in_reply_to_account_id\":136453537340198912,\"reblog\":null,\"content\":\"@dante<\\/a> I identify to this pic.\",\"created_at\":\"2020-03-15T14:40:50.000000Z\",\"emojis\":[],\"replies_count\":0,\"reblogs_count\":0,\"favourites_count\":1,\"reblogged\":null,\"favourited\":null,\"muted\":null,\"sensitive\":false,\"spoiler_text\":\"\",\"visibility\":\"public\",\"mentions\":[{\"id\":\"136453537340198912\",\"url\":\"https:\\/\\/pixelfed.de\\/dante\",\"username\":\"dante\",\"acct\":\"dante\"}],\"tags\":[],\"card\":null,\"poll\":null,\"application\":{\"name\":\"web\",\"website\":null},\"language\":null,\"pinned\":null,\"account\":{\"id\":\"144813993922531328\",\"username\":\"Clement\",\"acct\":\"Clement\",\"display_name\":\"Andrea\",\"locked\":false,\"created_at\":\"2020-03-15T14:39:06.000000Z\",\"followers_count\":0,\"following_count\":2,\"statuses_count\":0,\"note\":\"\",\"url\":\"https:\\/\\/pixelfed.de\\/Clement\",\"avatar\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"avatar_static\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"header\":\"\",\"header_static\":\"\",\"emojis\":[],\"moved\":null,\"fields\":null,\"bot\":false,\"software\":\"pixelfed\",\"is_admin\":false}}},{\"id\":\"45940\",\"type\":\"favourite\",\"created_at\":\"2020-03-15T14:40:22.000000Z\",\"account\":{\"id\":\"144813993922531328\",\"username\":\"Clement\",\"acct\":\"Clement\",\"display_name\":\"Andrea\",\"locked\":false,\"created_at\":\"2020-03-15T14:39:06.000000Z\",\"followers_count\":0,\"following_count\":2,\"statuses_count\":0,\"note\":\"\",\"url\":\"https:\\/\\/pixelfed.de\\/Clement\",\"avatar\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"avatar_static\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"header\":\"\",\"header_static\":\"\",\"emojis\":[],\"moved\":null,\"fields\":null,\"bot\":false,\"software\":\"pixelfed\",\"is_admin\":false},\"status\":{\"id\":\"144456497894658048\",\"uri\":\"https:\\/\\/pixelfed.de\\/p\\/dante\\/144456497894658048\",\"url\":\"https:\\/\\/pixelfed.de\\/p\\/dante\\/144456497894658048\",\"in_reply_to_id\":null,\"in_reply_to_account_id\":null,\"reblog\":null,\"content\":\"Saturn V launch\",\"created_at\":\"2020-03-14T14:58:32.000000Z\",\"emojis\":[],\"replies_count\":0,\"reblogs_count\":1,\"favourites_count\":6,\"reblogged\":null,\"favourited\":null,\"muted\":null,\"sensitive\":false,\"spoiler_text\":\"\",\"visibility\":\"public\",\"mentions\":[],\"tags\":[],\"card\":null,\"poll\":null,\"application\":{\"name\":\"web\",\"website\":null},\"language\":null,\"pinned\":null,\"account\":{\"id\":\"136453537340198912\",\"username\":\"dante\",\"acct\":\"dante\",\"display_name\":\"Dante\",\"locked\":false,\"created_at\":\"2020-02-21T12:57:38.000000Z\",\"followers_count\":3,\"following_count\":4,\"statuses_count\":1,\"note\":\"\",\"url\":\"https:\\/\\/pixelfed.de\\/dante\",\"avatar\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"avatar_static\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"header\":\"\",\"header_static\":\"\",\"emojis\":[],\"moved\":null,\"fields\":null,\"bot\":false,\"software\":\"pixelfed\",\"is_admin\":false},\"media_attachments\":[{\"id\":\"16583\",\"type\":\"image\",\"url\":\"https:\\/\\/pixelfed.de\\/storage\\/m\\/113a3e2124a33b1f5511e531953f5ee48456e0c7\\/0fa8bbe19cc23442034913a7c97fbe4527c1d63a\\/vs2vouJ86OvzxhK9ewhPlfPf4Y9IoQ5CHfiBIqad.jpeg\",\"remote_url\":null,\"preview_url\":\"https:\\/\\/pixelfed.de\\/storage\\/m\\/113a3e2124a33b1f5511e531953f5ee48456e0c7\\/0fa8bbe19cc23442034913a7c97fbe4527c1d63a\\/vs2vouJ86OvzxhK9ewhPlfPf4Y9IoQ5CHfiBIqad_thumb.jpeg\",\"text_url\":null,\"meta\":null,\"description\":null}]}},{\"id\":\"45939\",\"type\":\"follow\",\"created_at\":\"2020-03-15T14:40:12.000000Z\",\"account\":{\"id\":\"144813993922531328\",\"username\":\"Clement\",\"acct\":\"Clement\",\"display_name\":\"Andrea\",\"locked\":false,\"created_at\":\"2020-03-15T14:39:06.000000Z\",\"followers_count\":0,\"following_count\":2,\"statuses_count\":0,\"note\":\"\",\"url\":\"https:\\/\\/pixelfed.de\\/Clement\",\"avatar\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"avatar_static\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"header\":\"\",\"header_static\":\"\",\"emojis\":[],\"moved\":null,\"fields\":null,\"bot\":false,\"software\":\"pixelfed\",\"is_admin\":false}},{\"id\":\"45804\",\"type\":\"favourite\",\"created_at\":\"2020-03-15T02:22:47.000000Z\",\"account\":{\"id\":\"131984031779786752\",\"username\":\"joska\",\"acct\":\"joska\",\"display_name\":\"jxzk\",\"locked\":false,\"created_at\":\"2020-02-09T04:57:25.000000Z\",\"followers_count\":3,\"following_count\":2,\"statuses_count\":82,\"note\":\"Feliz :D\",\"url\":\"https:\\/\\/pixelfed.de\\/joska\",\"avatar\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/013\\/198\\/403\\/177\\/978\\/675\\/2\\/zhytNrT3ij5cHBXX1mJv_avatar.jpeg?v=4fc82b26aecb47d2868c4efbe3581732a3e7cbcc6c2efb32062c08170a05eeb8\",\"avatar_static\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/013\\/198\\/403\\/177\\/978\\/675\\/2\\/zhytNrT3ij5cHBXX1mJv_avatar.jpeg?v=4fc82b26aecb47d2868c4efbe3581732a3e7cbcc6c2efb32062c08170a05eeb8\",\"header\":\"\",\"header_static\":\"\",\"emojis\":[],\"moved\":null,\"fields\":null,\"bot\":false,\"software\":\"pixelfed\",\"is_admin\":false},\"status\":{\"id\":\"144456497894658048\",\"uri\":\"https:\\/\\/pixelfed.de\\/p\\/dante\\/144456497894658048\",\"url\":\"https:\\/\\/pixelfed.de\\/p\\/dante\\/144456497894658048\",\"in_reply_to_id\":null,\"in_reply_to_account_id\":null,\"reblog\":null,\"content\":\"Saturn V launch\",\"created_at\":\"2020-03-14T14:58:32.000000Z\",\"emojis\":[],\"replies_count\":0,\"reblogs_count\":1,\"favourites_count\":6,\"reblogged\":null,\"favourited\":null,\"muted\":null,\"sensitive\":false,\"spoiler_text\":\"\",\"visibility\":\"public\",\"mentions\":[],\"tags\":[],\"card\":null,\"poll\":null,\"application\":{\"name\":\"web\",\"website\":null},\"language\":null,\"pinned\":null,\"account\":{\"id\":\"136453537340198912\",\"username\":\"dante\",\"acct\":\"dante\",\"display_name\":\"Dante\",\"locked\":false,\"created_at\":\"2020-02-21T12:57:38.000000Z\",\"followers_count\":3,\"following_count\":4,\"statuses_count\":1,\"note\":\"\",\"url\":\"https:\\/\\/pixelfed.de\\/dante\",\"avatar\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"avatar_static\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"header\":\"\",\"header_static\":\"\",\"emojis\":[],\"moved\":null,\"fields\":null,\"bot\":false,\"software\":\"pixelfed\",\"is_admin\":false},\"media_attachments\":[{\"id\":\"16583\",\"type\":\"image\",\"url\":\"https:\\/\\/pixelfed.de\\/storage\\/m\\/113a3e2124a33b1f5511e531953f5ee48456e0c7\\/0fa8bbe19cc23442034913a7c97fbe4527c1d63a\\/vs2vouJ86OvzxhK9ewhPlfPf4Y9IoQ5CHfiBIqad.jpeg\",\"remote_url\":null,\"preview_url\":\"https:\\/\\/pixelfed.de\\/storage\\/m\\/113a3e2124a33b1f5511e531953f5ee48456e0c7\\/0fa8bbe19cc23442034913a7c97fbe4527c1d63a\\/vs2vouJ86OvzxhK9ewhPlfPf4Y9IoQ5CHfiBIqad_thumb.jpeg\",\"text_url\":null,\"meta\":null,\"description\":null}]}},{\"id\":\"45783\",\"type\":\"favourite\",\"created_at\":\"2020-03-15T00:45:53.000000Z\",\"account\":{\"id\":\"139939422090170368\",\"username\":\"DrMsch\",\"acct\":\"DrMsch\",\"display_name\":\"Mische\",\"locked\":false,\"created_at\":\"2020-03-02T03:49:18.000000Z\",\"followers_count\":13,\"following_count\":21,\"statuses_count\":9,\"note\":\"TelefonFotos und Malereien von DerMische\",\"url\":\"https:\\/\\/pixelfed.de\\/DrMsch\",\"avatar\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/013\\/993\\/942\\/209\\/017\\/036\\/8\\/xQUOq3tBNgOhFItKMZ56_avatar.jpeg?v=4fc82b26aecb47d2868c4efbe3581732a3e7cbcc6c2efb32062c08170a05eeb8\",\"avatar_static\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/013\\/993\\/942\\/209\\/017\\/036\\/8\\/xQUOq3tBNgOhFItKMZ56_avatar.jpeg?v=4fc82b26aecb47d2868c4efbe3581732a3e7cbcc6c2efb32062c08170a05eeb8\",\"header\":\"\",\"header_static\":\"\",\"emojis\":[],\"moved\":null,\"fields\":null,\"bot\":false,\"software\":\"pixelfed\",\"is_admin\":false},\"status\":{\"id\":\"144456497894658048\",\"uri\":\"https:\\/\\/pixelfed.de\\/p\\/dante\\/144456497894658048\",\"url\":\"https:\\/\\/pixelfed.de\\/p\\/dante\\/144456497894658048\",\"in_reply_to_id\":null,\"in_reply_to_account_id\":null,\"reblog\":null,\"content\":\"Saturn V launch\",\"created_at\":\"2020-03-14T14:58:32.000000Z\",\"emojis\":[],\"replies_count\":0,\"reblogs_count\":1,\"favourites_count\":6,\"reblogged\":null,\"favourited\":null,\"muted\":null,\"sensitive\":false,\"spoiler_text\":\"\",\"visibility\":\"public\",\"mentions\":[],\"tags\":[],\"card\":null,\"poll\":null,\"application\":{\"name\":\"web\",\"website\":null},\"language\":null,\"pinned\":null,\"account\":{\"id\":\"136453537340198912\",\"username\":\"dante\",\"acct\":\"dante\",\"display_name\":\"Dante\",\"locked\":false,\"created_at\":\"2020-02-21T12:57:38.000000Z\",\"followers_count\":3,\"following_count\":4,\"statuses_count\":1,\"note\":\"\",\"url\":\"https:\\/\\/pixelfed.de\\/dante\",\"avatar\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"avatar_static\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"header\":\"\",\"header_static\":\"\",\"emojis\":[],\"moved\":null,\"fields\":null,\"bot\":false,\"software\":\"pixelfed\",\"is_admin\":false},\"media_attachments\":[{\"id\":\"16583\",\"type\":\"image\",\"url\":\"https:\\/\\/pixelfed.de\\/storage\\/m\\/113a3e2124a33b1f5511e531953f5ee48456e0c7\\/0fa8bbe19cc23442034913a7c97fbe4527c1d63a\\/vs2vouJ86OvzxhK9ewhPlfPf4Y9IoQ5CHfiBIqad.jpeg\",\"remote_url\":null,\"preview_url\":\"https:\\/\\/pixelfed.de\\/storage\\/m\\/113a3e2124a33b1f5511e531953f5ee48456e0c7\\/0fa8bbe19cc23442034913a7c97fbe4527c1d63a\\/vs2vouJ86OvzxhK9ewhPlfPf4Y9IoQ5CHfiBIqad_thumb.jpeg\",\"text_url\":null,\"meta\":null,\"description\":null}]}},{\"id\":\"45768\",\"type\":\"favourite\",\"created_at\":\"2020-03-14T22:43:18.000000Z\",\"account\":{\"id\":\"139819612522024960\",\"username\":\"vitorpires\",\"acct\":\"vitorpires\",\"display_name\":\"Vitor Pires\",\"locked\":false,\"created_at\":\"2020-03-01T19:53:13.000000Z\",\"followers_count\":20,\"following_count\":8,\"statuses_count\":42,\"note\":\"photography\\/graphic design\\/desktop publishing\\/illustration\\/3D animation\\/video\\/content writing\\/teaching\\/woodworking\\/luthier\",\"url\":\"https:\\/\\/pixelfed.de\\/vitorpires\",\"avatar\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/013\\/981\\/961\\/252\\/202\\/496\\/0\\/2HB6Gs2m5NaSys7W5ikG_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35\",\"avatar_static\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/013\\/981\\/961\\/252\\/202\\/496\\/0\\/2HB6Gs2m5NaSys7W5ikG_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35\",\"header\":\"\",\"header_static\":\"\",\"emojis\":[],\"moved\":null,\"fields\":null,\"bot\":false,\"software\":\"pixelfed\",\"is_admin\":false},\"status\":{\"id\":\"144456497894658048\",\"uri\":\"https:\\/\\/pixelfed.de\\/p\\/dante\\/144456497894658048\",\"url\":\"https:\\/\\/pixelfed.de\\/p\\/dante\\/144456497894658048\",\"in_reply_to_id\":null,\"in_reply_to_account_id\":null,\"reblog\":null,\"content\":\"Saturn V launch\",\"created_at\":\"2020-03-14T14:58:32.000000Z\",\"emojis\":[],\"replies_count\":0,\"reblogs_count\":1,\"favourites_count\":6,\"reblogged\":null,\"favourited\":null,\"muted\":null,\"sensitive\":false,\"spoiler_text\":\"\",\"visibility\":\"public\",\"mentions\":[],\"tags\":[],\"card\":null,\"poll\":null,\"application\":{\"name\":\"web\",\"website\":null},\"language\":null,\"pinned\":null,\"account\":{\"id\":\"136453537340198912\",\"username\":\"dante\",\"acct\":\"dante\",\"display_name\":\"Dante\",\"locked\":false,\"created_at\":\"2020-02-21T12:57:38.000000Z\",\"followers_count\":3,\"following_count\":4,\"statuses_count\":1,\"note\":\"\",\"url\":\"https:\\/\\/pixelfed.de\\/dante\",\"avatar\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"avatar_static\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"header\":\"\",\"header_static\":\"\",\"emojis\":[],\"moved\":null,\"fields\":null,\"bot\":false,\"software\":\"pixelfed\",\"is_admin\":false},\"media_attachments\":[{\"id\":\"16583\",\"type\":\"image\",\"url\":\"https:\\/\\/pixelfed.de\\/storage\\/m\\/113a3e2124a33b1f5511e531953f5ee48456e0c7\\/0fa8bbe19cc23442034913a7c97fbe4527c1d63a\\/vs2vouJ86OvzxhK9ewhPlfPf4Y9IoQ5CHfiBIqad.jpeg\",\"remote_url\":null,\"preview_url\":\"https:\\/\\/pixelfed.de\\/storage\\/m\\/113a3e2124a33b1f5511e531953f5ee48456e0c7\\/0fa8bbe19cc23442034913a7c97fbe4527c1d63a\\/vs2vouJ86OvzxhK9ewhPlfPf4Y9IoQ5CHfiBIqad_thumb.jpeg\",\"text_url\":null,\"meta\":null,\"description\":null}]}},{\"id\":\"45723\",\"type\":\"favourite\",\"created_at\":\"2020-03-14T15:01:49.000000Z\",\"account\":{\"id\":\"79574199701737472\",\"username\":\"Spaziergaenger\",\"acct\":\"Spaziergaenger\",\"display_name\":\"anonymous\",\"locked\":false,\"created_at\":\"2019-09-17T13:59:27.000000Z\",\"followers_count\":40,\"following_count\":0,\"statuses_count\":894,\"note\":\"\",\"url\":\"https:\\/\\/pixelfed.de\\/Spaziergaenger\",\"avatar\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/007\\/957\\/419\\/970\\/173\\/747\\/2\\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35\",\"avatar_static\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/007\\/957\\/419\\/970\\/173\\/747\\/2\\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35\",\"header\":\"\",\"header_static\":\"\",\"emojis\":[],\"moved\":null,\"fields\":null,\"bot\":false,\"software\":\"pixelfed\",\"is_admin\":false},\"status\":{\"id\":\"144456497894658048\",\"uri\":\"https:\\/\\/pixelfed.de\\/p\\/dante\\/144456497894658048\",\"url\":\"https:\\/\\/pixelfed.de\\/p\\/dante\\/144456497894658048\",\"in_reply_to_id\":null,\"in_reply_to_account_id\":null,\"reblog\":null,\"content\":\"Saturn V launch\",\"created_at\":\"2020-03-14T14:58:32.000000Z\",\"emojis\":[],\"replies_count\":0,\"reblogs_count\":1,\"favourites_count\":6,\"reblogged\":null,\"favourited\":null,\"muted\":null,\"sensitive\":false,\"spoiler_text\":\"\",\"visibility\":\"public\",\"mentions\":[],\"tags\":[],\"card\":null,\"poll\":null,\"application\":{\"name\":\"web\",\"website\":null},\"language\":null,\"pinned\":null,\"account\":{\"id\":\"136453537340198912\",\"username\":\"dante\",\"acct\":\"dante\",\"display_name\":\"Dante\",\"locked\":false,\"created_at\":\"2020-02-21T12:57:38.000000Z\",\"followers_count\":3,\"following_count\":4,\"statuses_count\":1,\"note\":\"\",\"url\":\"https:\\/\\/pixelfed.de\\/dante\",\"avatar\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"avatar_static\":\"https:\\/\\/pixelfed.de\\/storage\\/avatars\\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9\",\"header\":\"\",\"header_static\":\"\",\"emojis\":[],\"moved\":null,\"fields\":null,\"bot\":false,\"software\":\"pixelfed\",\"is_admin\":false},\"media_attachments\":[{\"id\":\"16583\",\"type\":\"image\",\"url\":\"https:\\/\\/pixelfed.de\\/storage\\/m\\/113a3e2124a33b1f5511e531953f5ee48456e0c7\\/0fa8bbe19cc23442034913a7c97fbe4527c1d63a\\/vs2vouJ86OvzxhK9ewhPlfPf4Y9IoQ5CHfiBIqad.jpeg\",\"remote_url\":null,\"preview_url\":\"https:\\/\\/pixelfed.de\\/storage\\/m\\/113a3e2124a33b1f5511e531953f5ee48456e0c7\\/0fa8bbe19cc23442034913a7c97fbe4527c1d63a\\/vs2vouJ86OvzxhK9ewhPlfPf4Y9IoQ5CHfiBIqad_thumb.jpeg\",\"text_url\":null,\"meta\":null,\"description\":null}]}}]" - const val accountStatusesJson = """[{"id":"153848799696130048","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/153848799696130048","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/153848799696130048","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\nn\u00e4her geht es an Neu-Bamberg und den dritten Kontrollpunkt heran","created_at":"2020-04-09T13:00:12.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":1,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"18521","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/IX5g6bLSCB4lpp0wTr6HKj4mYEpNUhgrjv50InJ3.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/IX5g6bLSCB4lpp0wTr6HKj4mYEpNUhgrjv50InJ3_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"153848420002566144","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/153848420002566144","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/153848420002566144","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\nimmer wieder Wein und im Hintergrund der Steinbruch","created_at":"2020-04-09T12:58:41.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":1,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"18520","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/g0ScH8shkytKjS9fask1CZHj0TMzWhbgJALApt5u.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/g0ScH8shkytKjS9fask1CZHj0TMzWhbgJALApt5u_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"153848196064481280","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/153848196064481280","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/153848196064481280","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\ndas Ende der Steigung ist absehbar","created_at":"2020-04-09T12:57:48.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":0,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"18518","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/xLvyeeywOdeUTxYW03caxRXzNr4bldmAB1JUXUzv.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/xLvyeeywOdeUTxYW03caxRXzNr4bldmAB1JUXUzv_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"153446932994461696","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/153446932994461696","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/153446932994461696","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\nweiter gehts es steil den Berg hinauf","created_at":"2020-04-08T10:23:19.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":0,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"18421","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/VkG4AxsEE8gyWqUxprpna6LNSwRtKjW6A8yoZijI.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/VkG4AxsEE8gyWqUxprpna6LNSwRtKjW6A8yoZijI_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"153446615137521664","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/153446615137521664","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/153446615137521664","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\nUnd hier gibt es neben dem zweiten Stempel auch k\u00fchle Getr\u00e4nke und Reibekuchen zum Sattessen","created_at":"2020-04-08T10:22:03.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":0,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"18420","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/BhSqEKyy6iBlJGnrHpvjp2ZCrmCnepM0E3c83vvf.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/BhSqEKyy6iBlJGnrHpvjp2ZCrmCnepM0E3c83vvf_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"153446167173271552","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/153446167173271552","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/153446167173271552","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\nDer zweite Kontrollpunkt: das sogenannte Wingertsh\u00e4uschen","created_at":"2020-04-08T10:20:17.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":4,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"18419","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/iPjOwRResYI4BZxSNV7ZNpTsLz7Wna4IRHcu25dz.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/iPjOwRResYI4BZxSNV7ZNpTsLz7Wna4IRHcu25dz_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"153053485812813824","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/153053485812813824","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/153053485812813824","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\nBlick auf die Kreisstra\u00dfe 88","created_at":"2020-04-07T08:19:54.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":2,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"18291","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/GdQiZxDAB99NYbq0QpeW4GoNDzhAGuxcylOhWaBF.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/GdQiZxDAB99NYbq0QpeW4GoNDzhAGuxcylOhWaBF_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"153053256745095168","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/153053256745095168","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/153053256745095168","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\nendlich Schatten","created_at":"2020-04-07T08:18:59.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":3,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"18290","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/6TIe7Rj5vLFwp7VIRjLapnLqOzQ0WCtfnaVni9QS.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/6TIe7Rj5vLFwp7VIRjLapnLqOzQ0WCtfnaVni9QS_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"153052983712681984","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/153052983712681984","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/153052983712681984","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\nDer Wald kommt immer n\u00e4her","created_at":"2020-04-07T08:17:54.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":4,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"18285","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/N0Dmh4lwjTcI8ACNqnxsS2cuWN5ZvusnZAt8XauE.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/N0Dmh4lwjTcI8ACNqnxsS2cuWN5ZvusnZAt8XauE_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"152657825544409088","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/152657825544409088","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/152657825544409088","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\nnoch immer bei glei\u00dfender Sonne auf offenem Feld kommt Wald in Sicht","created_at":"2020-04-06T06:07:41.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":3,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"18180","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/jgnP7gR3rw37yCnF1T5379krsZhRzh6JHiASINSP.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/jgnP7gR3rw37yCnF1T5379krsZhRzh6JHiASINSP_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"152657278993043456","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/152657278993043456","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/152657278993043456","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\nBlick durch die Zweige auf die historische Kapelle von Hof Iben","created_at":"2020-04-06T06:05:31.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":2,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"18179","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/FyadKaDMpUZkde9cQzrBKbtcAaHKsT4WtDQSnLMg.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/FyadKaDMpUZkde9cQzrBKbtcAaHKsT4WtDQSnLMg_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"152656864235098112","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/152656864235098112","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/152656864235098112","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\nimmer weiter \u00fcber offene Felder","created_at":"2020-04-06T06:03:52.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":4,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"18178","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/ExqK24a3Ri3Jn7XEodkoAx7kRLJIQPuWaFzx09Sk.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/ExqK24a3Ri3Jn7XEodkoAx7kRLJIQPuWaFzx09Sk_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"152158673148448768","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/152158673148448768","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/152158673148448768","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\n... und r\u00fcber nach Neu Bamberg, links der Steinbruch","created_at":"2020-04-04T21:04:14.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":1,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"18106","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/r29IsMP9TUagGBhr8UzRi7Odb83mMJNotEAZxqsS.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/r29IsMP9TUagGBhr8UzRi7Odb83mMJNotEAZxqsS_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"152158370521026560","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/152158370521026560","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/152158370521026560","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\nDer Blick zur\u00fcck nach F\u00fcrfeld ...","created_at":"2020-04-04T21:03:02.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":2,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"18105","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/CDMIhBX34DlG3L4clpHQvdPoBpR8MCgIUSy1cnQU.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/CDMIhBX34DlG3L4clpHQvdPoBpR8MCgIUSy1cnQU_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"152157823550230528","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/152157823550230528","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/152157823550230528","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\n... bis zum Horizont ...","created_at":"2020-04-04T21:00:52.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":1,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"18104","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/JYBeWD99cXadqo385uZjH98y2Cs1tQ0kun1NH9vd.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/JYBeWD99cXadqo385uZjH98y2Cs1tQ0kun1NH9vd_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"151795147183624192","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/151795147183624192","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/151795147183624192","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\nDuch die Weinberge Richtung Hof Iben","created_at":"2020-04-03T20:59:43.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":1,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"18071","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/VUD4ewNlZ7ofpFiO8wG9SEoaG4TbmRBgNtfEkEKw.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/VUD4ewNlZ7ofpFiO8wG9SEoaG4TbmRBgNtfEkEKw_thumb.jpeg","text_url":null,"meta":null,"description":null},{"id":"18072","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/2tiRGDebac4DvE3a2djRjCHtaJuspwdyaxiu27JY.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/2tiRGDebac4DvE3a2djRjCHtaJuspwdyaxiu27JY_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"151794839434956800","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/151794839434956800","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/151794839434956800","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\nBlick nach S\u00fcden \u00fcber die herrliche Landschaft","created_at":"2020-04-03T20:58:29.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":1,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"18070","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/vdEd5cyW6SMxectXdDVPdMNNt4TNrtERHSRGWc9R.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/vdEd5cyW6SMxectXdDVPdMNNt4TNrtERHSRGWc9R_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"151794394431885312","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/151794394431885312","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/151794394431885312","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\nBlick \u00fcber F\u00fcrfeld","created_at":"2020-04-03T20:56:43.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":4,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"18069","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/sGtZi6f3Q9cJfc6cou08otJqBoGCcSlot64yttra.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/sGtZi6f3Q9cJfc6cou08otJqBoGCcSlot64yttra_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"151344455130157056","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/151344455130157056","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/151344455130157056","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\nDas Fahrzeug der Veranstaltungsleitung von hinten","created_at":"2020-04-02T15:08:49.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":2,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"17966","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/0bixTrcD8FKkM12kG7k21OzfDDZQIVEyadu7Tv47.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/0bixTrcD8FKkM12kG7k21OzfDDZQIVEyadu7Tv47_thumb.jpeg","text_url":null,"meta":null,"description":null}]},{"id":"151343830426324992","uri":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/151343830426324992","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/151343830426324992","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"2017-05-28 VG Bad-Kreuznach Wandertag
\n
\nBlick zur\u00fcck zum Eichelberg","created_at":"2020-04-02T15:06:21.000000Z","emojis":[],"replies_count":0,"reblogs_count":0,"favourites_count":1,"reblogged":null,"favourited":null,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","mentions":[],"tags":[],"card":null,"poll":null,"application":{"name":"web","website":null},"language":null,"pinned":null,"account":{"id":"79574199701737472","username":"Spaziergaenger","acct":"Spaziergaenger","display_name":"anonymous","locked":false,"created_at":"2019-09-17T13:59:27.000000Z","followers_count":43,"following_count":0,"statuses_count":966,"note":"","url":"https:\/\/pixelfed.de\/Spaziergaenger","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/007\/957\/419\/970\/173\/747\/2\/KEg4YgCgsmzdgyVztszz_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"17965","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/PgvSJ25k9SS6dhFh5l3v0rgQ5r7SY5JbepkrDkPP.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/PgvSJ25k9SS6dhFh5l3v0rgQ5r7SY5JbepkrDkPP_thumb.jpeg","text_url":null,"meta":null,"description":null}]}]""" - const val commentStatusesJson = """{ - "ancestors": [], - "descendants": [ - { - "id": "103189026958574542", - "created_at": "2019-11-23T20:06:36.011Z", - "in_reply_to_id": "140364967936397312", - "in_reply_to_account_id": null, - "sensitive": false, - "spoiler_text": "", - "visibility": "public", - "language": "en", - "uri": "https://mastodon.social/users/Gargron/statuses/103270115826048975", - "url": "https://mastodon.social/@Gargron/103270115826048975", - "replies_count": 5, - "reblogs_count": 6, - "favourites_count": 11, - "favourited": false, - "reblogged": false, - "muted": false, - "bookmarked": false, - "content": "

"I lost my inheritance with one wrong digit on my sort code"

https://www.theguardian.com/money/2019/dec/07/i-lost-my-193000-inheritance-with-one-wrong-digit-on-my-sort-code", - "reblog": null, - "application": { - "name": "Web", - "website": null - }, - "account": { - "id": "1", - "username": "Gargron", - "acct": "Gargron", - "display_name": "Eugen", - "locked": false, - "bot": false, - "discoverable": true, - "group": false, - "created_at": "2016-03-16T14:34:26.392Z", - "note": "

Developer of Mastodon and administrator of mastodon.social. I post service announcements, development updates, and personal stuff.

", - "url": "https://mastodon.social/@Gargron", - "avatar": "https://files.mastodon.social/accounts/avatars/000/000/001/original/d96d39a0abb45b92.jpg", - "avatar_static": "https://files.mastodon.social/accounts/avatars/000/000/001/original/d96d39a0abb45b92.jpg", - "header": "https://files.mastodon.social/accounts/headers/000/000/001/original/c91b871f294ea63e.png", - "header_static": "https://files.mastodon.social/accounts/headers/000/000/001/original/c91b871f294ea63e.png", - "followers_count": 322930, - "following_count": 459, - "statuses_count": 61323, - "last_status_at": "2019-12-10T08:14:44.811Z", - "emojis": [], - "fields": [ - { - "name": "Patreon", - "value": "https://www.patreon.com/mastodonhttps://zeonfederated.com@Dobios<\/a> @Dante<\/a>","reblog":null,"application":{"name":"web","website":null},"mentions":[{"id":"136800034732773376","url":"https:\/\/pixelfed.de\/Dobios","username":"Dobios","acct":"Dobios"},{"id":"136453537340198912","url":"https:\/\/pixelfed.de\/dante","username":"dante","acct":"dante"}],"tags":[{"name":"mushroom","url":"https:\/\/pixelfed.de\/discover\/tags\/mushroom"},{"name":"commentsstillbroken","url":"https:\/\/pixelfed.de\/discover\/tags\/commentsstillbroken"},{"name":"fixyourapi","url":"https:\/\/pixelfed.de\/discover\/tags\/fixyourapi"},{"name":"pls","url":"https:\/\/pixelfed.de\/discover\/tags\/pls"}],"emojis":[],"card":null,"poll":null,"account":{"id":"145183325781364736","username":"machintuck","acct":"machintuck","display_name":"Arthur","locked":false,"created_at":"2020-03-16T15:06:42.000000Z","followers_count":4,"following_count":4,"statuses_count":5,"note":"","url":"https:\/\/pixelfed.de\/machintuck","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/014\/518\/332\/578\/136\/473\/6\/gbdKtKOhTkNA5UxCzeAQ_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/014\/518\/332\/578\/136\/473\/6\/gbdKtKOhTkNA5UxCzeAQ_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},"media_attachments":[{"id":"19228","type":"image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/9b4393bfd32c643a265bd1c557b981f167d60969\/lbOqQOMeHLGmhYgehhZUBJ4JvjtKulh83BA97LoP.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/9b4393bfd32c643a265bd1c557b981f167d60969\/lbOqQOMeHLGmhYgehhZUBJ4JvjtKulh83BA97LoP_thumb.jpeg","text_url":null,"meta":null,"description":null}]}""" - - - const val followRelationshipJson = """{"id":"136800034732773376","following":true,"followed_by":true,"blocking":false,"muting":false,"muting_notifications":null,"requested":false,"domain_blocking":null,"showing_reblogs":null,"endorsed":false}""" - const val unfollowRelationshipJson = """{"id":"136800034732773376","following":false,"followed_by":true,"blocking":false,"muting":false,"muting_notifications":null,"requested":false,"domain_blocking":null,"showing_reblogs":null,"endorsed":false}""" - const val relationshipJson = """[{"id":"136800034732773376","following":true,"followed_by":true,"blocking":false,"muting":false,"muting_notifications":null,"requested":false,"domain_blocking":null,"showing_reblogs":null,"endorsed":false}]""" - const val followersJson = """[{"id":"118664651939647488","username":"ete2","acct":"ete2","display_name":"Christian","locked":false,"created_at":"2020-01-03T10:50:57.000000Z","followers_count":22,"following_count":3,"statuses_count":20,"note":"Nature lover - hobby photographer","url":"https:\/\/pixelfed.de\/ete2","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/011\/866\/465\/193\/964\/748\/8\/pUY03jBlOeOqjNDMWwYM_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/011\/866\/465\/193\/964\/748\/8\/pUY03jBlOeOqjNDMWwYM_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},{"id":"136800034732773376","username":"Dobios","acct":"Dobios","display_name":"Andrew Dobis","locked":false,"created_at":"2020-02-22T11:54:29.000000Z","followers_count":7,"following_count":5,"statuses_count":3,"note":"","url":"https:\/\/pixelfed.de\/Dobios","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/013\/680\/003\/473\/277\/337\/6\/AnBpDi92CAuuNjOYkyqg_avatar.jpeg?v=4b227777d4dd1fc61c6f884f48641d02b4d121d3fd328cb08b5531fcacdabf8a","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/013\/680\/003\/473\/277\/337\/6\/AnBpDi92CAuuNjOYkyqg_avatar.jpeg?v=4b227777d4dd1fc61c6f884f48641d02b4d121d3fd328cb08b5531fcacdabf8a","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false},{"id":"144813993922531328","username":"Clement","acct":"Clement","display_name":"Andrea","locked":false,"created_at":"2020-03-15T14:39:06.000000Z","followers_count":2,"following_count":4,"statuses_count":0,"note":"","url":"https:\/\/pixelfed.de\/Clement","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9","avatar_static":"https:\/\/pixelfed.de\/storage\/avatars\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9","header":"","header_static":"","emojis":[],"moved":null,"fields":null,"bot":false,"software":"pixelfed","is_admin":false}]""" - const val followersAfterJson = """[]""" - const val searchCaturday = """{"accounts":[],"hashtags":[{"name":"caturday","url":"https:\/\/pixelfed.de\/discover\/tags\/caturday","history":[]}],"statuses":[{"id":"159936348634091520","uri":"https:\/\/pixelfed.de\/p\/memo\/159936348634091520","url":"https:\/\/pixelfed.de\/p\/memo\/159936348634091520","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"Kater quer - ist manchmal recht schwer \ud83d\ude04
\n
\n
#smartography<\/a> #smartografie<\/a> #photography<\/a> #fotografie<\/a> #foto<\/a> #photo<\/a> #postprocessed<\/a> #mywork<\/a> #ownwork<\/a> #bauwagen<\/a> #memovillage<\/a> #caturday<\/a>","content_text":"Kater quer - ist manchmal recht schwer \ud83d\ude04\n\n#smartography #smartografie #photography #fotografie #foto #photo #postprocessed #mywork #ownwork #bauwagen #memovillage #caturday","created_at":"2020-04-26T08:09:56+00:00","emojis":[],"reblogs_count":1,"favourites_count":6,"reblogged":false,"favourited":false,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","application":{"name":"web","website":null},"language":null,"pinned":null,"mentions":[],"tags":[],"pf_type":"photo","reply_count":0,"comments_disabled":false,"thread":false,"replies":[],"parent":[],"place":null,"local":true,"account":{"id":"144086892776919040","username":"memo","acct":"memo","display_name":"Memo","locked":false,"followers_count":33,"following_count":11,"statuses_count":59,"note":"Ein 7m\u00b2 Bauwagen bietet mir gen\u00fcgend Platz f\u00fcr die Meditation und dem Studium buddhistischer Schriften.","url":"https:\/\/pixelfed.de\/memo","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/014\/408\/689\/277\/691\/904\/0\/pC4CZV0OmSHGfpsRl9MX_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","website":null,"local":true,"is_admin":false,"created_at":"2020-03-13T14:29:52.000000Z","header_bg":"mauve"},"media_attachments":[{"id":"20282","type":"Image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/f688fca6e37074bf7440c93f34de4ca47fbde5c5\/iQkWLvASx473DxmgioN6qd6ExOiqFqjYQMYOCHPn.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/f688fca6e37074bf7440c93f34de4ca47fbde5c5\/iQkWLvASx473DxmgioN6qd6ExOiqFqjYQMYOCHPn_thumb.jpeg","text_url":null,"meta":null,"description":"Kater quer - ist manchmal recht schwer \ud83d\ude04","license":null,"is_nsfw":0,"orientation":"landscape","filter_name":null,"filter_class":null,"mime":"image\/jpeg"}]},{"id":"159603005711323136","uri":"https:\/\/pixelfed.de\/p\/memo\/159603005711323136","url":"https:\/\/pixelfed.de\/p\/memo\/159603005711323136","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"Och n\u00f6, nicht schon wieder #caturday<\/a>
\n
\n
#smartography<\/a> #smartografie<\/a> #photography<\/a> #fotografie<\/a> #foto<\/a> #photo<\/a> #postprocessed<\/a> #mywork<\/a> #ownwork<\/a> #bauwagen<\/a> #memovillage<\/a>","content_text":"Och n\u00f6, nicht schon wieder #caturday\n\n#smartography #smartografie #photography #fotografie #foto #photo #postprocessed #mywork #ownwork #bauwagen #memovillage","created_at":"2020-04-25T10:05:21+00:00","emojis":[],"reblogs_count":1,"favourites_count":6,"reblogged":false,"favourited":false,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","application":{"name":"web","website":null},"language":null,"pinned":null,"mentions":[],"tags":[],"pf_type":"photo","reply_count":0,"comments_disabled":false,"thread":false,"replies":[],"parent":[],"place":null,"local":true,"account":{"id":"144086892776919040","username":"memo","acct":"memo","display_name":"Memo","locked":false,"followers_count":33,"following_count":11,"statuses_count":59,"note":"Ein 7m\u00b2 Bauwagen bietet mir gen\u00fcgend Platz f\u00fcr die Meditation und dem Studium buddhistischer Schriften.","url":"https:\/\/pixelfed.de\/memo","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/014\/408\/689\/277\/691\/904\/0\/pC4CZV0OmSHGfpsRl9MX_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","website":null,"local":true,"is_admin":false,"created_at":"2020-03-13T14:29:52.000000Z","header_bg":"mauve"},"media_attachments":[{"id":"20150","type":"Image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/f688fca6e37074bf7440c93f34de4ca47fbde5c5\/d8kYeRmrvLdE2lAEWilyIHjn7HZpytiVkfTsYpR3.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/f688fca6e37074bf7440c93f34de4ca47fbde5c5\/d8kYeRmrvLdE2lAEWilyIHjn7HZpytiVkfTsYpR3_thumb.jpeg","text_url":null,"meta":null,"description":"Och n\u00f6, nicht schon wieder caturday","license":null,"is_nsfw":0,"orientation":"landscape","filter_name":null,"filter_class":null,"mime":"image\/jpeg"}]},{"id":"157763505968254976","uri":"https:\/\/pixelfed.de\/p\/memo\/157763505968254976","url":"https:\/\/pixelfed.de\/p\/memo\/157763505968254976","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"\u00c4rgerlich, wenn der Platz schon besetzt ist \ud83d\ude06
\n
\n
#smartography<\/a> #smartografie<\/a> #photography<\/a> #fotografie<\/a> #foto<\/a> #photo<\/a> #postprocessed<\/a> #mywork<\/a> #ownwork<\/a> #memovillage<\/a> #caturday<\/a>","content_text":"\u00c4rgerlich, wenn der Platz schon besetzt ist \ud83d\ude06\n\n#smartography #smartografie #photography #fotografie #foto #photo #postprocessed #mywork #ownwork #memovillage #caturday","created_at":"2020-04-20T08:15:50+00:00","emojis":[],"reblogs_count":1,"favourites_count":7,"reblogged":false,"favourited":false,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","application":{"name":"web","website":null},"language":null,"pinned":null,"mentions":[],"tags":[],"pf_type":"photo","reply_count":1,"comments_disabled":false,"thread":false,"replies":[],"parent":[],"place":null,"local":true,"account":{"id":"144086892776919040","username":"memo","acct":"memo","display_name":"Memo","locked":false,"followers_count":33,"following_count":11,"statuses_count":59,"note":"Ein 7m\u00b2 Bauwagen bietet mir gen\u00fcgend Platz f\u00fcr die Meditation und dem Studium buddhistischer Schriften.","url":"https:\/\/pixelfed.de\/memo","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/014\/408\/689\/277\/691\/904\/0\/pC4CZV0OmSHGfpsRl9MX_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","website":null,"local":true,"is_admin":false,"created_at":"2020-03-13T14:29:52.000000Z","header_bg":"mauve"},"media_attachments":[{"id":"19539","type":"Image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/f688fca6e37074bf7440c93f34de4ca47fbde5c5\/TVzm85vohJq8hsWcYuADeVIophCPrrKNCPVWU92I.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/f688fca6e37074bf7440c93f34de4ca47fbde5c5\/TVzm85vohJq8hsWcYuADeVIophCPrrKNCPVWU92I_thumb.jpeg","text_url":null,"meta":null,"description":"\u00c4rgerlich, wenn der Platz schon besetzt ist \ud83d\ude06","license":null,"is_nsfw":0,"orientation":"landscape","filter_name":null,"filter_class":null,"mime":"image\/jpeg"}]},{"id":"157164321040896000","uri":"https:\/\/pixelfed.de\/p\/memo\/157164321040896000","url":"https:\/\/pixelfed.de\/p\/memo\/157164321040896000","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"Ich habe zwar \u00fcberhaupt nichts getan, aber ich mache dann auch mal Pause \ud83d\ude04
\n
\n
#smartography<\/a> #smartografie<\/a> #photography<\/a> #fotografie<\/a> #foto<\/a> #photo<\/a> #postprocessed<\/a> #mywork<\/a> #ownwork<\/a> #memovillage<\/a> #caturday<\/a>","content_text":"Ich habe zwar \u00fcberhaupt nichts getan, aber ich mache dann auch mal Pause \ud83d\ude04\n\n#smartography #smartografie #photography #fotografie #foto #photo #postprocessed #mywork #ownwork #memovillage #caturday","created_at":"2020-04-18T16:34:54+00:00","emojis":[],"reblogs_count":0,"favourites_count":4,"reblogged":false,"favourited":false,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","application":{"name":"web","website":null},"language":null,"pinned":null,"mentions":[],"tags":[],"pf_type":"photo","reply_count":0,"comments_disabled":false,"thread":false,"replies":[],"parent":[],"place":null,"local":true,"account":{"id":"144086892776919040","username":"memo","acct":"memo","display_name":"Memo","locked":false,"followers_count":33,"following_count":11,"statuses_count":59,"note":"Ein 7m\u00b2 Bauwagen bietet mir gen\u00fcgend Platz f\u00fcr die Meditation und dem Studium buddhistischer Schriften.","url":"https:\/\/pixelfed.de\/memo","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/014\/408\/689\/277\/691\/904\/0\/pC4CZV0OmSHGfpsRl9MX_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","website":null,"local":true,"is_admin":false,"created_at":"2020-03-13T14:29:52.000000Z","header_bg":"mauve"},"media_attachments":[{"id":"19392","type":"Image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/f688fca6e37074bf7440c93f34de4ca47fbde5c5\/Asys2NMtMrsJW7JopEEgYMhn08MgvdzZAdXC24HL.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/f688fca6e37074bf7440c93f34de4ca47fbde5c5\/Asys2NMtMrsJW7JopEEgYMhn08MgvdzZAdXC24HL_thumb.jpeg","text_url":null,"meta":null,"description":"Ich habe zwar \u00fcberhaupt nichts getan, aber ich mache dann auch mal Pause \ud83d\ude04","license":null,"is_nsfw":0,"orientation":"landscape","filter_name":null,"filter_class":null,"mime":"image\/jpeg"}]},{"id":"154909082959089664","uri":"https:\/\/pixelfed.de\/p\/memo\/154909082959089664","url":"https:\/\/pixelfed.de\/p\/memo\/154909082959089664","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"Memo-Village ist f\u00fcr alle Wesen ein Ort der Ruhe \ud83d\ude00
\n
\n
#smartography<\/a> #smartografie<\/a> #photography<\/a> #fotografie<\/a> #foto<\/a> #photo<\/a> #postprocessed<\/a> #mywork<\/a> #ownwork<\/a> #bauwagen<\/a> #memovillage<\/a> #caturday<\/a>","content_text":"Memo-Village ist f\u00fcr alle Wesen ein Ort der Ruhe \ud83d\ude00\n\n#smartography #smartografie #photography #fotografie #foto #photo #postprocessed #mywork #ownwork #bauwagen #memovillage #caturday","created_at":"2020-04-12T11:13:23+00:00","emojis":[],"reblogs_count":0,"favourites_count":8,"reblogged":false,"favourited":false,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","application":{"name":"web","website":null},"language":null,"pinned":null,"mentions":[],"tags":[],"pf_type":"photo","reply_count":1,"comments_disabled":false,"thread":false,"replies":[],"parent":[],"place":null,"local":true,"account":{"id":"144086892776919040","username":"memo","acct":"memo","display_name":"Memo","locked":false,"followers_count":33,"following_count":11,"statuses_count":59,"note":"Ein 7m\u00b2 Bauwagen bietet mir gen\u00fcgend Platz f\u00fcr die Meditation und dem Studium buddhistischer Schriften.","url":"https:\/\/pixelfed.de\/memo","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/014\/408\/689\/277\/691\/904\/0\/pC4CZV0OmSHGfpsRl9MX_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","website":null,"local":true,"is_admin":false,"created_at":"2020-03-13T14:29:52.000000Z","header_bg":"mauve"},"media_attachments":[{"id":"18713","type":"Image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/f688fca6e37074bf7440c93f34de4ca47fbde5c5\/tgpkXES9ySJDmkUTMICN6rF5GD7CdIguxXtPJpn0.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/f688fca6e37074bf7440c93f34de4ca47fbde5c5\/tgpkXES9ySJDmkUTMICN6rF5GD7CdIguxXtPJpn0_thumb.jpeg","text_url":null,"meta":null,"description":"Memo-Village ist f\u00fcr alle Wesen ein Ort der Ruhe \ud83d\ude00","license":null,"is_nsfw":0,"orientation":"landscape","filter_name":null,"filter_class":null,"mime":"image\/jpeg"}]},{"id":"154526434457686016","uri":"https:\/\/pixelfed.de\/p\/memo\/154526434457686016","url":"https:\/\/pixelfed.de\/p\/memo\/154526434457686016","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"Total entspannt \ud83d\ude00
\n
\n
#smartography<\/a> #smartografie<\/a> #photography<\/a> #fotografie<\/a> #foto<\/a> #photo<\/a> #postprocessed<\/a> #mywork<\/a> #ownwork<\/a> #bauwagen<\/a> #memovillage<\/a> #caturday<\/a>","content_text":"Total entspannt \ud83d\ude00\n\n#smartography #smartografie #photography #fotografie #foto #photo #postprocessed #mywork #ownwork #bauwagen #memovillage #caturday","created_at":"2020-04-11T09:52:52+00:00","emojis":[],"reblogs_count":3,"favourites_count":9,"reblogged":false,"favourited":false,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","application":{"name":"web","website":null},"language":null,"pinned":null,"mentions":[],"tags":[],"pf_type":"photo","reply_count":0,"comments_disabled":false,"thread":false,"replies":[],"parent":[],"place":null,"local":true,"account":{"id":"144086892776919040","username":"memo","acct":"memo","display_name":"Memo","locked":false,"followers_count":33,"following_count":11,"statuses_count":59,"note":"Ein 7m\u00b2 Bauwagen bietet mir gen\u00fcgend Platz f\u00fcr die Meditation und dem Studium buddhistischer Schriften.","url":"https:\/\/pixelfed.de\/memo","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/014\/408\/689\/277\/691\/904\/0\/pC4CZV0OmSHGfpsRl9MX_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","website":null,"local":true,"is_admin":false,"created_at":"2020-03-13T14:29:52.000000Z","header_bg":"mauve"},"media_attachments":[{"id":"18631","type":"Image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/f688fca6e37074bf7440c93f34de4ca47fbde5c5\/OghyUzygX0NbAIcCExp1aAmC1afm86bEekG3Uk4r.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/f688fca6e37074bf7440c93f34de4ca47fbde5c5\/OghyUzygX0NbAIcCExp1aAmC1afm86bEekG3Uk4r_thumb.jpeg","text_url":null,"meta":null,"description":"Total entspannt \ud83d\ude00","license":null,"is_nsfw":0,"orientation":"landscape","filter_name":null,"filter_class":null,"mime":"image\/jpeg"}]},{"id":"152352374571274240","uri":"https:\/\/pixelfed.de\/p\/memo\/152352374571274240","url":"https:\/\/pixelfed.de\/p\/memo\/152352374571274240","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"Erst fressen und dann streicheln, oder andersherum? \ud83d\ude00
\n
\n
#smartography<\/a> #smartografie<\/a> #photography<\/a> #fotografie<\/a> #foto<\/a> #photo<\/a> #postprocessed<\/a> #mywork<\/a> #ownwork<\/a> #bauwagen<\/a> #caturday<\/a>","content_text":"Erst fressen und dann streicheln, oder andersherum? \ud83d\ude00\n\n#smartography #smartografie #photography #fotografie #foto #photo #postprocessed #mywork #ownwork #bauwagen #caturday","created_at":"2020-04-05T09:53:56+00:00","emojis":[],"reblogs_count":1,"favourites_count":6,"reblogged":false,"favourited":false,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","application":{"name":"web","website":null},"language":null,"pinned":null,"mentions":[],"tags":[],"pf_type":"photo","reply_count":0,"comments_disabled":false,"thread":false,"replies":[],"parent":[],"place":null,"local":true,"account":{"id":"144086892776919040","username":"memo","acct":"memo","display_name":"Memo","locked":false,"followers_count":33,"following_count":11,"statuses_count":59,"note":"Ein 7m\u00b2 Bauwagen bietet mir gen\u00fcgend Platz f\u00fcr die Meditation und dem Studium buddhistischer Schriften.","url":"https:\/\/pixelfed.de\/memo","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/014\/408\/689\/277\/691\/904\/0\/pC4CZV0OmSHGfpsRl9MX_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","website":null,"local":true,"is_admin":false,"created_at":"2020-03-13T14:29:52.000000Z","header_bg":"mauve"},"media_attachments":[{"id":"18149","type":"Image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/f688fca6e37074bf7440c93f34de4ca47fbde5c5\/UbURQ2oHNrCpndb2gZF3AzmMB4wZ05VdvGQRUptG.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/f688fca6e37074bf7440c93f34de4ca47fbde5c5\/UbURQ2oHNrCpndb2gZF3AzmMB4wZ05VdvGQRUptG_thumb.jpeg","text_url":null,"meta":null,"description":"Erst fressen und dann streicheln, oder andersherum? \ud83d\ude00","license":null,"is_nsfw":0,"orientation":"landscape","filter_name":null,"filter_class":null,"mime":"image\/jpeg"}]},{"id":"152057487443496960","uri":"https:\/\/pixelfed.de\/p\/memo\/152057487443496960","url":"https:\/\/pixelfed.de\/p\/memo\/152057487443496960","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"Eines dieser Wesen, die bei mir regelm\u00e4\u00dfig vorbeikommen, und sich Streicheleinheiten abholen \ud83d\ude00
\n
\n
#smartography<\/a> #smartografie<\/a> #photography<\/a> #fotografie<\/a> #foto<\/a> #photo<\/a> #postprocessed<\/a> #mywork<\/a> #ownwork<\/a> #bauwagen<\/a> #caturday<\/a>","content_text":"Eines dieser Wesen, die bei mir regelm\u00e4\u00dfig vorbeikommen, und sich Streicheleinheiten abholen \ud83d\ude00\n\n#smartography #smartografie #photography #fotografie #foto #photo #postprocessed #mywork #ownwork #bauwagen #caturday","created_at":"2020-04-04T14:22:10+00:00","emojis":[],"reblogs_count":0,"favourites_count":6,"reblogged":false,"favourited":false,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","application":{"name":"web","website":null},"language":null,"pinned":null,"mentions":[],"tags":[],"pf_type":"photo","reply_count":0,"comments_disabled":false,"thread":false,"replies":[],"parent":[],"place":null,"local":true,"account":{"id":"144086892776919040","username":"memo","acct":"memo","display_name":"Memo","locked":false,"followers_count":33,"following_count":11,"statuses_count":59,"note":"Ein 7m\u00b2 Bauwagen bietet mir gen\u00fcgend Platz f\u00fcr die Meditation und dem Studium buddhistischer Schriften.","url":"https:\/\/pixelfed.de\/memo","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/014\/408\/689\/277\/691\/904\/0\/pC4CZV0OmSHGfpsRl9MX_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","website":null,"local":true,"is_admin":false,"created_at":"2020-03-13T14:29:52.000000Z","header_bg":"mauve"},"media_attachments":[{"id":"18086","type":"Image","url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/f688fca6e37074bf7440c93f34de4ca47fbde5c5\/Qu9Tr7RmFGMfhZWTrXFKMUy5gfEls8eGRAk7KC1D.jpeg","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/f688fca6e37074bf7440c93f34de4ca47fbde5c5\/Qu9Tr7RmFGMfhZWTrXFKMUy5gfEls8eGRAk7KC1D_thumb.jpeg","text_url":null,"meta":null,"description":"Eines dieser Wesen, die bei mir regelm\u00e4\u00dfig vorbeikommen, und sich Streicheleinheiten abholen \ud83d\ude00","license":null,"is_nsfw":0,"orientation":"landscape","filter_name":null,"filter_class":null,"mime":"image\/jpeg"}]},{"id":"131821413018505216","uri":"https:\/\/pixelfed.de\/p\/hendersonb\/131821413018505216","url":"https:\/\/pixelfed.de\/p\/hendersonb\/131821413018505216","in_reply_to_id":null,"in_reply_to_account_id":null,"reblog":null,"content":"This is Ygor #cats<\/a> #caturday<\/a>","content_text":"This is Ygor #cats #caturday","created_at":"2020-02-08T18:11:13+00:00","emojis":[],"reblogs_count":0,"favourites_count":3,"reblogged":false,"favourited":false,"muted":null,"sensitive":false,"spoiler_text":"","visibility":"public","application":{"name":"web","website":null},"language":null,"pinned":null,"mentions":[],"tags":[],"pf_type":"photo","reply_count":0,"comments_disabled":false,"thread":false,"replies":[],"parent":[],"place":null,"local":true,"account":{"id":"131496536109617152","username":"hendersonb","acct":"hendersonb","display_name":"Henderson Bariani","locked":false,"followers_count":2,"following_count":4,"statuses_count":3,"note":"Somente um contador de hist\u00f3rias. Algumas s\u00e3o boas, eu juro.","url":"https:\/\/pixelfed.de\/hendersonb","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/013\/149\/653\/610\/961\/715\/2\/dsDUtTWnblOdyZzKc5fO_avatar.jpeg?v=d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35","website":"https:\/\/allmylinks.com\/hbariani","local":true,"is_admin":false,"created_at":"2020-02-07T20:40:17.000000Z","header_bg":null},"media_attachments":[{"id":"14198","type":"Image","url":"https:\/\/pixelfed.de\/storage\/m\/8fa1fd56cb1e6ebed8a4959ce89bd19543a4da5f\/0b0c383a8c3a80f2d4eea825387123e17839a9b1\/cQvkmbKxDdFftGWncg8DMq2u7QOc5yQgTd6LCm2F.png","remote_url":null,"preview_url":"https:\/\/pixelfed.de\/storage\/m\/8fa1fd56cb1e6ebed8a4959ce89bd19543a4da5f\/0b0c383a8c3a80f2d4eea825387123e17839a9b1\/cQvkmbKxDdFftGWncg8DMq2u7QOc5yQgTd6LCm2F_thumb.png","text_url":null,"meta":null,"description":null,"license":null,"is_nsfw":0,"orientation":"portrait","filter_name":null,"filter_class":null,"mime":"image\/png"}]}]}""" - const val searchCaturdayHashtags = """{"accounts":[],"hashtags":[{"name":"caturday","url":"https:\/\/pixelfed.de\/discover\/tags\/caturday","history":[]}],"statuses":[]}""" - const val searchEmpty = """{"accounts":[],"hashtags":[],"statuses":[]}""" - const val searchDansupAccounts = """{"accounts":[{"id":"1238","username":"dansup","acct":"dansup@pixelfed.social","display_name":"dansup","locked":false,"followers_count":14,"following_count":0,"statuses_count":0,"note":"Hi, I'm the developer behind Pixelfed!","url":"https:\/\/pixelfed.social\/users\/dansup","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9","website":null,"local":false,"is_admin":false,"created_at":"2019-04-19T01:14:56.000000Z","header_bg":null},{"id":"78120743388450816","username":"dansup","acct":"dansup@mastodon.social","display_name":"dansup\u00ae","locked":false,"followers_count":2,"following_count":0,"statuses_count":1,"note":"

Full stack developer.<\/p>

Creator of @pixelfed<\/span><\/a><\/span>, admin of https:\/\/<\/span>pixelfed.social<\/span><\/span><\/a><\/p>

#music<\/span><\/a> #design<\/span><\/a> #webdev<\/span><\/a> #beer<\/span><\/a><\/p>","url":"https:\/\/mastodon.social\/users\/dansup","avatar":"https:\/\/pixelfed.de\/storage\/avatars\/default.png?v=5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9","website":null,"local":false,"is_admin":false,"created_at":"2019-09-13T13:43:56.000000Z","header_bg":null}],"hashtags":[],"statuses":[]}""" - const val discover = """{"posts":[{"type":"photo:album","url":"https:\/\/pixelfed.de\/p\/MarkJR84\/147370947417083904","thumb":"https:\/\/pixelfed.de\/storage\/m\/113a3e2124a33b1f5511e531953f5ee48456e0c7\/55d75a11bcc79dd8c98cf04e40ea0ea563508f35\/ujO0Zt8JuZLRgN6gP1JtVeIBcVxMQXDBtDAMDBUM_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/ieure\/142862071581773824","thumb":"https:\/\/pixelfed.de\/storage\/m\/113a3e2124a33b1f5511e531953f5ee48456e0c7\/50fb80d927603c0a90afc2dc4a913d4b73d886e5\/1VaAV0uYoWGQKcJrM5i3F5EJeVriu6doEwLRPyyG_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/kindundkegel\/156147414724644864","thumb":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/5ac8092cc03257b7229f67c7c03f83c44e79aa61\/g5MM1vAF2q58vf9fDRVYfseDIC17AeB143HGPJMt_thumb.jpeg"},{"type":"photo:album","url":"https:\/\/pixelfed.de\/p\/die6095\/160363458813104128","thumb":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/66864b9ca55ad8d94df956d4042e7080c4767e0c\/IaUxEuNQveOL6BaA2f05KDaVexWwp4Ebr2z5j7P1_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/albert\/140256440240705536","thumb":"https:\/\/pixelfed.de\/storage\/m\/113a3e2124a33b1f5511e531953f5ee48456e0c7\/832bb8b76564b4e4fdae78637ef71aec8dfc5413\/FPxvwun0CczGJ4vqS3pdPBP2V5nVwfYOdn6OZKwl_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/caffee\/133109637321986048","thumb":"https:\/\/pixelfed.de\/storage\/m\/8fa1fd56cb1e6ebed8a4959ce89bd19543a4da5f\/81f8bec749901cf1f57bc5ef516cd3bd837abd9c\/bf4WBOCjRXIfP38pEPVVlekNA7KAmOyagrdbNz9S_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/OBS\/160664565552648192","thumb":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d2fb84479480bba3f8caea6e286af5e68cc96043\/WEEyhhjYfDfUu4JQ0F5LWrrYM1CunD4U8TViqNa8_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/mybujo\/147730903064514560","thumb":"https:\/\/pixelfed.de\/storage\/m\/113a3e2124a33b1f5511e531953f5ee48456e0c7\/af24fb17907442403d590308ee5728844f9a65fd\/6zaeKPo5GTDHCkRrl6SXSs288HJXcpvo3B0dK8La_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/xtz\/132236940895457280","thumb":"https:\/\/pixelfed.de\/storage\/m\/8fa1fd56cb1e6ebed8a4959ce89bd19543a4da5f\/f1114b52fd6acd5f7dd57f99f9c3f8b43bbe6755\/2y5IHLUv8QpGXPGu3OByFw43ixNTjMGr0SSM0IBc_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/miguel31416\/153835062528446464","thumb":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/3d238be60342b03e99597acb95f3202ff5e28ecc\/ndZt1Y9HP23vBDidfumz66ePyOtiDzx6PoVMUIh0_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/Unterholz\/149623530475098112","thumb":"https:\/\/pixelfed.de\/storage\/m\/113a3e2124a33b1f5511e531953f5ee48456e0c7\/6718ff240b37ea60056b739cd9d723ff3f4a3182\/u9gU8532aqto5a5KyQbk4kyIvjiYlFYuydJfNCGW_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/eiseskaelte\/137934754728251392","thumb":"https:\/\/pixelfed.de\/storage\/m\/8fa1fd56cb1e6ebed8a4959ce89bd19543a4da5f\/6ef83b3e8ff8c33c534c9b6c5f6b9663ec95b7cc\/LtV219DZNDJfksAevobbrGTKPc3OBuA9PUBr6gXr_thumb.png"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/nimu\/144158481107259392","thumb":"https:\/\/pixelfed.de\/storage\/m\/113a3e2124a33b1f5511e531953f5ee48456e0c7\/41a443fdae82d760bcbf858a3399cd421bc525eb\/oviSIwJ7bIHOxykZY7mUVl0xJ9Tj2abtZRPtCp9W_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/lastscater\/137926547892998144","thumb":"https:\/\/pixelfed.de\/storage\/m\/8fa1fd56cb1e6ebed8a4959ce89bd19543a4da5f\/90840e09c38be3ced54a83ea11f89956cb834b26\/HRCYdRziVXDsFw39LIHXrKReCs6YEFFTGnSMEb7e_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/vitorpires\/154891474964713472","thumb":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/4e45ce7f71c006f5284f4ffd39cde516fd852faa\/m4zRcA94lUtltjEUKIZtwMBEOQ74a3wMWpEqDM9S_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/cringe\/154235391417913344","thumb":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/924bac0d892d54a247213a5cd3e3f5aee4777fd1\/8l4TosvpojPCQbI2NDhaQTuvsfDwTHblRMp2Uf1f_thumb.png"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/lastscater\/137951787188621312","thumb":"https:\/\/pixelfed.de\/storage\/m\/8fa1fd56cb1e6ebed8a4959ce89bd19543a4da5f\/90840e09c38be3ced54a83ea11f89956cb834b26\/ds52GM0O7reAsvmGy2NSL2F1KPmNVqZJZTHEr7hI_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/LittleJoeMuc\/134359790792085504","thumb":"https:\/\/pixelfed.de\/storage\/m\/8fa1fd56cb1e6ebed8a4959ce89bd19543a4da5f\/c47c50c61d58c6392917640925d171e8b865fee0\/z6kBZxIDcSDkUwGOAGYckqZQc83om684paqYihdO_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/lastscater\/137925095220973568","thumb":"https:\/\/pixelfed.de\/storage\/m\/8fa1fd56cb1e6ebed8a4959ce89bd19543a4da5f\/90840e09c38be3ced54a83ea11f89956cb834b26\/QVry7No0BwNmF99FBCaBzFPsilFP4BNBkLvvugew_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/noooaaaiiin\/155404404713984000","thumb":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d4d5c08106389fc548c2aef0d8f3ff7cfa3d3069\/kU0W2rnm7mzqV7q7lo2uLluefiEzILzaYzRbgqgb_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/snaums\/145995392436277248","thumb":"https:\/\/pixelfed.de\/storage\/m\/113a3e2124a33b1f5511e531953f5ee48456e0c7\/1f0d995ffb7a60c9475ed4e4c0ed25aaddfbde70\/DQf1Y1Dl11twi8cbPU2eKUVjuGk6H1nyPmULJsOz_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/Almusanz\/159960015694860288","thumb":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/040df869cbb7c9442d5462e2eb5e7ae825ba25d4\/Z0mSqgYI9faLSpYLgcoD7A0Jz1GDCMLDTQfcvNdu_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/eljay\/130011130146983936","thumb":"https:\/\/pixelfed.de\/storage\/m\/8fa1fd56cb1e6ebed8a4959ce89bd19543a4da5f\/ce7e035a402debf0fc3232ab682070d5ddc7b5f1\/e7n272XWbTKpYTwdHhJauPhUHWpYfrfEtjo7NPf7_thumb.jpeg"},{"type":"photo:album","url":"https:\/\/pixelfed.de\/p\/plukordinaire\/159325092709535744","thumb":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/fd35e6591b0dd4ecc10cd1d1c4c804e0fdeb250b\/dPs70MKL4UZuU2Nwt3nIIcHSp5WyCZQ8PNc3rRiV_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/pixelstreet\/147856947473944576","thumb":"https:\/\/pixelfed.de\/storage\/m\/113a3e2124a33b1f5511e531953f5ee48456e0c7\/b8d1b7c62c7bf2412a8dcde4a75a9fa1d64a120a\/7K6iVwdF2L9Z7F2SHva9rwfxHiVV0Nrwg0YuPN82_thumb.png"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/Skoschi\/157826394389352448","thumb":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/17a88b10bc9476951217b4adfa8a60fa07df6689\/2EOZ9Of46bU4JVLJvfLavZL7qBUWndw3UyFV3ads_thumb.jpeg"},{"type":"photo:album","url":"https:\/\/pixelfed.de\/p\/paulakreuzer\/158959344812167168","thumb":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/4974892d3110a34dafe15a31cd6826370d90d4b6\/xeEnavra15D6FkG6Gm0ck64yYIQR4Y9CTdk2CcrJ_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/ArcanHell\/161515195255099392","thumb":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/2734fafccac3289550956b10b13bd2068fcd76be\/l1ewmXyd2dgrOVCXm0LRtM3MwPR7nd7RPj3eOehu_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/kindundkegel\/153475112908230656","thumb":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/5ac8092cc03257b7229f67c7c03f83c44e79aa61\/ODZil754pGMVBpiCCVHgxySCrBtb6umeENWjTJGO_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/Almusanz\/159953937712156672","thumb":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/040df869cbb7c9442d5462e2eb5e7ae825ba25d4\/KYtbVJ5Ms5OTxzL2tIKiuK9r75ZA7yKdxP9TgOyj_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/KC_Heine\/160060046221381632","thumb":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/29940ae2a397610159094385e0bb538f2710a1fe\/r7eUVmGLAYxzclAcmWNZyqudbwEhrgheEIyW3EBy_thumb.jpeg"},{"type":"photo:album","url":"https:\/\/pixelfed.de\/p\/ArcanHell\/161871256575152128","thumb":"https:\/\/pixelfed.de\/storage\/m\/d6eeff88aa0c9af7fd5f87cd6431a14d929d049b\/2734fafccac3289550956b10b13bd2068fcd76be\/mVX4GI2piQiLYKVj2g6zIUKDqw6AKwnFqJhH6uuJ_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/132029081461067776","thumb":"https:\/\/pixelfed.de\/storage\/m\/8fa1fd56cb1e6ebed8a4959ce89bd19543a4da5f\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/HFzlgWRwwhxjQhUJsYYf7uWXSeb4RXhHlo0diZlN_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/ambratolm\/139802175395205120","thumb":"https:\/\/pixelfed.de\/storage\/m\/113a3e2124a33b1f5511e531953f5ee48456e0c7\/27fcf21acabf918e928e1c7735b37c5ae31b0a7f\/02zt6B4hzfTRiTJ580V0NhBnqydCmzrkdvMuOD5F_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/Spaziergaenger\/161138718869164032","thumb":"https:\/\/pixelfed.de\/storage\/m\/d0931bf747b992a1c83e055753526516f2706111\/d75e944e8cc85b953d37d1a9d615f44d6e0cca22\/1ooyRfacILwBUX0iXb1cylr6Z6ZQxG2yc8sLHvSs_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/Hogan\/135357604443590656","thumb":"https:\/\/pixelfed.de\/storage\/m\/8fa1fd56cb1e6ebed8a4959ce89bd19543a4da5f\/c57656ac5a0c325a42f74916663cee33dca42475\/mqBjO74MM0mlFrRhtXKhg5X58hFaWGviqknnvXzq_thumb.jpeg"},{"type":"photo","url":"https:\/\/pixelfed.de\/p\/Mediokerl\/150314218074279936","thumb":"https:\/\/pixelfed.de\/storage\/m\/113a3e2124a33b1f5511e531953f5ee48456e0c7\/fbdb3b050807225b57b4b782c539bf7d2dd0ef23\/GAxpGSe1RKfQw7jSumE7jzetByfY2Kzer04UOgOU_thumb.jpeg"}]}""" - const val tokenJson = """{ - "access_token": "azerty", - "token_type": "Bearer", - "scope": "read write follow push", - "created_at": 12121212 - }""" - const val instanceJson = """{ - "uri": "REPLACEWITHDOMAIN", - "title": "PixelDroid", - "description": "Test server description.", - "email": "lejeu@epfl.ch", - "max_toot_chars": "666", - "thumbnail": "https://files.mastodon.social/site_uploads/files/000/000/001/original/vlcsnap-2018-08-27-16h43m11s127.png", - "version": "69.420", - "registrations": true - }""" - var applicationJson = Gson().toJson(Application(name="PixelDroid", - website=null, vapid_key=null, client_id="286", - client_secret="2q3dHY29U8GNZ2eY6cbcw010cWk3qVGmWXxAJzn7")) - } -} \ No newline at end of file diff --git a/app/src/androidTest/java/com/h/pixeldroid/testUtility/MockServer.kt b/app/src/androidTest/java/com/h/pixeldroid/testUtility/MockServer.kt deleted file mode 100644 index 2b6ca681..00000000 --- a/app/src/androidTest/java/com/h/pixeldroid/testUtility/MockServer.kt +++ /dev/null @@ -1,235 +0,0 @@ -package com.h.pixeldroid.testUtility - -import okhttp3.HttpUrl -import okhttp3.mockwebserver.Dispatcher -import okhttp3.mockwebserver.MockResponse -import okhttp3.mockwebserver.MockWebServer -import okhttp3.mockwebserver.RecordedRequest - - -class MockServer { - private val server = MockWebServer() - - companion object{ - private const val headerName = "Content-Type" - private const val headerValue = "application/json; charset=utf-8" - } - - fun start() { - try { - server.start(45106) - server.dispatcher = getDispatcher() - } catch (e: IllegalArgumentException) { - - } - } - fun stop(){ - try { - server.shutdown() - } catch (e: IllegalArgumentException) { - - } - } - - private fun getDispatcher(): Dispatcher { - return object : Dispatcher() { - @Throws(InterruptedException::class) - override fun dispatch(request: RecordedRequest): MockResponse { - when (request.path) { - "/api/v1/accounts/verify_credentials" -> return MockResponse() - .addHeader(headerName, headerValue) - .setResponseCode(200).setBody(JsonValues.accountJson) - "/api/v1/instance" -> return MockResponse() - .addHeader(headerName, headerValue) - .setResponseCode(200).setBody(JsonValues.instanceJson.replace("REPLACEWITHDOMAIN", getUrl().toString())) - "/api/v1/media" -> return MockResponse() - .addHeader(headerName, headerValue) - .setResponseCode(200).setBody(JsonValues.mediaUploadResponseJson) - "/api/v1/timelines/home" -> return MockResponse() - .addHeader(headerName, headerValue) - .setResponseCode(200).setBody(JsonValues.feedJson) - "/oauth/token" -> return MockResponse() - .addHeader(headerName, headerValue) - .setResponseCode(200).setBody(JsonValues.tokenJson) - } - when { - request.path?.contains("/api/v1/apps") == true -> { - return MockResponse() - .addHeader("Content-Type", "application/json; charset=utf-8") - .setResponseCode(200).setBody(JsonValues.applicationJson) - } - request.path?.contains("/api/v1/notifications") == true -> { - return MockResponse() - .addHeader("Content-Type", "application/json; charset=utf-8") - .setResponseCode(200).setBody(JsonValues.notificationsJson) - } - request.path?.contains("/api/v1/timelines/home") == true -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.feedJson) - } - request.path?.contains("/api/v1/timelines/public") == true -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.feedJson) - } - request.path?.contains("/api/v1/accounts/0/statuses") == true -> { - return MockResponse().setHttp2ErrorCode(401) - } - request.path?.matches("/api/v1/accounts/[0-9]*/statuses".toRegex()) == true -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.accountStatusesJson) - } - request.path?.contains("/api/v1/statuses/0/context") == true -> { - return MockResponse().setHttp2ErrorCode(401) - } - request.path?.matches("/api/v1/statuses/[0-9]*/context".toRegex()) == true -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.commentStatusesJson) - } - request.path?.contains("/api/v1/statuses/0/favourite") == true -> { - return MockResponse().setHttp2ErrorCode(401) - } - request.path?.matches("/api/v1/statuses/[0-9]*/favourite".toRegex()) == true -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.likedJson) - } - request.path?.contains("/api/v1/statuses/0/unfavourite") == true -> { - return MockResponse().setHttp2ErrorCode(401) - } - request.path?.matches("/api/v1/statuses/[0-9]*/unfavourite".toRegex()) == true -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.unlikeJson) - } - request.path?.contains("/api/v1/statuses") == true -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.unlikeJson) - } - request.path?.contains("/api/v1/accounts/0") == true -> { - return MockResponse().setHttp2ErrorCode(401) - } - request.path?.matches("/api/v1/accounts/[0-9]*".toRegex()) == true -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.accountJson) - } - request.path?.contains("/api/v1/statuses/0/reblog") == true -> { - return MockResponse().setHttp2ErrorCode(401) - } - request.path?.matches("/api/v1/statuses/[0-9]*/reblog".toRegex()) == true -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.reblogJson) - } - request.path?.contains("/api/v1/statuses/0/unreblog") == true -> { - return MockResponse().setHttp2ErrorCode(401) - } - request.path?.matches("/api/v1/statuses/[0-9]*/unreblog".toRegex()) == true -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.unlikeJson) - } - request.path?.matches("/api/v1/accounts/[0-9]*/follow".toRegex()) == true -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.followRelationshipJson) - } - request.path?.matches("/api/v1/accounts/[0-9]*/unfollow".toRegex()) == true -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.unfollowRelationshipJson) - } - request.path?.contains("/api/v1/accounts/relationships") == true -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.relationshipJson) - } - request.path?.matches("/api/v1/accounts/[0-9]*/followers\\?limit=[0-9]*".toRegex()) == true -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.followersJson) - } - request.path?.matches("/api/v1/accounts/[0-9]*/followers\\?since_id=[0-9]*&limit=[0-9]*".toRegex()) == true -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.followersAfterJson) - } - request.path?.matches("/api/v1/accounts/[0-9]*/following\\?limit=[0-9]*".toRegex()) == true -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.followersJson) - } - request.path?.matches("/api/v1/accounts/[0-9]*/following\\?since_id=[0-9]*&limit=[0-9]*".toRegex()) == true -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.followersAfterJson) - } - request.path?.matches("/api/v2/search\\?type=hashtags&q=caturday&limit=[0-9]*&offset=[0-9]*".toRegex()) == true -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.searchEmpty) - } - request.path?.contains("/api/v2/search?type=hashtags&q=caturday")!!-> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.searchCaturdayHashtags) - } - request.path?.contains("/api/v2/search?type=statuses&q=caturday")!! -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.searchCaturday) - } - request.path?.contains("/api/v2/search?type=accounts&q=dansup")!! -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.searchDansupAccounts) - } - request.path?.matches("""/api/v2/search\?(max_id=[0-9]*&)?type=(accounts|statuses)&q=dansup(&limit=[0-9]*)?""".toRegex())!! -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.searchEmpty) - } - request.path?.contains("/api/v2/discover/posts")!! -> { - return MockResponse().addHeader( - "Content-Type", - "application/json; charset=utf-8" - ).setResponseCode(200).setBody(JsonValues.discover) - } - else -> return MockResponse().setResponseCode(404) - } - } - } - } - - fun getUrl(): HttpUrl { - return server.url("") - } - -} \ No newline at end of file diff --git a/app/src/androidTest/java/com/h/pixeldroid/testUtility/Values.kt b/app/src/androidTest/java/com/h/pixeldroid/testUtility/Values.kt new file mode 100644 index 00000000..c048b060 --- /dev/null +++ b/app/src/androidTest/java/com/h/pixeldroid/testUtility/Values.kt @@ -0,0 +1,28 @@ +package com.h.pixeldroid.testUtility + +import com.h.pixeldroid.BuildConfig.* +import com.h.pixeldroid.utils.db.entities.InstanceDatabaseEntity +import com.h.pixeldroid.utils.db.entities.UserDatabaseEntity + +val testiTestoInstance = InstanceDatabaseEntity( + uri = INSTANCE_URI, + title = "PixelDroid CI instance", + maxStatusChars = 150, + maxPhotoSize = 64000, + maxVideoSize = 64000, + albumLimit = 4 +) +val testiTesto = UserDatabaseEntity( + + user_id = USER_ID, + instance_uri = INSTANCE_URI, + username = "testitesto", + display_name = "testi testo", + avatar_static = "$INSTANCE_URI/storage/avatars/default.jpg?v=0", + isActive = true, + accessToken = ACCESS_TOKEN, + refreshToken = REFRESH_TOKEN, + clientId = CLIENT_ID, + clientSecret = CLIENT_SECRET +) + diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e8a79a8f..e02204f9 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -19,7 +19,6 @@ android:allowBackup="false" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" - android:networkSecurityConfig="@xml/network_security_config" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme" diff --git a/app/src/main/assets/licenses.html b/app/src/main/assets/licenses.html index c7947198..65f6dfb2 100644 --- a/app/src/main/assets/licenses.html +++ b/app/src/main/assets/licenses.html @@ -30883,6 +30883,253 @@

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+
+ +

dynamicanimation

+

Copyright © Google Inc. All rights reserved.

+

http://developer.android.com/tools/extras/support-library.html

+ +
+

+ Apache License +
+ Version 2.0, January 2004 +
+ http://www.apache.org/licenses/ +

+

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

+

1. Definitions.

+

+ "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. +

+

+ "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. +

+

+ "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. +

+

+ "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. +

+

+ "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. +

+

+ "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. +

+

+ "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). +

+

+ "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. +

+

+ "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." +

+

+ "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. +

+
+

2. Grant of Copyright License.

+

+ Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. +

+
+
+

3. Grant of Patent License.

+

+ Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. +

+
+
+

4. Redistribution.

+

+ You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: +

+
+
    +
  • + You must give any other recipients of the Work or + Derivative Works a copy of this License; and +
  • +
  • + You must cause any modified files to carry prominent notices + stating that You changed the files; and +
  • +
  • + You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of | + the Derivative Works; and +
  • +
  • + If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. +
  • +
+

+ You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. +

+
+

5. Submission of Contributions.

+

+ Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. +

+
+
+

6. Trademarks.

+

+ This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. +

+
+
+

7. Disclaimer of Warranty.

+

+ Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. +

+
+
+

8. Limitation of Liability.

+

+ In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. +

+
+
+

9. Accepting Warranty or Additional Liability.

+

+ While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. +

+
+

END OF TERMS AND CONDITIONS

+

APPENDIX: How to apply the Apache License to your work.

+

+ To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. +

+
Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+
+
diff --git a/app/src/main/java/com/h/pixeldroid/LoginActivity.kt b/app/src/main/java/com/h/pixeldroid/LoginActivity.kt index 86aeb1c1..fde97693 100644 --- a/app/src/main/java/com/h/pixeldroid/LoginActivity.kt +++ b/app/src/main/java/com/h/pixeldroid/LoginActivity.kt @@ -118,7 +118,7 @@ class LoginActivity : BaseActivity() { private fun registerAppToServer(normalizedDomain: String) { - if(!validDomain(normalizedDomain)) failedRegistration(getString(R.string.invalid_domain)) + if(!validDomain(normalizedDomain)) return failedRegistration(getString(R.string.invalid_domain)) hideKeyboard() loadingAnimation(true) diff --git a/app/src/main/java/com/h/pixeldroid/postCreation/photoEdit/PhotoEditActivity.kt b/app/src/main/java/com/h/pixeldroid/postCreation/photoEdit/PhotoEditActivity.kt index e6e276f3..058aede1 100644 --- a/app/src/main/java/com/h/pixeldroid/postCreation/photoEdit/PhotoEditActivity.kt +++ b/app/src/main/java/com/h/pixeldroid/postCreation/photoEdit/PhotoEditActivity.kt @@ -319,6 +319,7 @@ class PhotoEditActivity : BaseActivity() { permissions: Array, grantResults: IntArray ) { + super.onRequestPermissionsResult(requestCode, permissions, grantResults) if(grantResults.size > 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED && grantResults[1] == PackageManager.PERMISSION_GRANTED) { diff --git a/app/src/main/java/com/h/pixeldroid/posts/feeds/uncachedFeeds/accountLists/AccountListFragment.kt b/app/src/main/java/com/h/pixeldroid/posts/feeds/uncachedFeeds/accountLists/AccountListFragment.kt index 6442d8cf..90a5a18b 100644 --- a/app/src/main/java/com/h/pixeldroid/posts/feeds/uncachedFeeds/accountLists/AccountListFragment.kt +++ b/app/src/main/java/com/h/pixeldroid/posts/feeds/uncachedFeeds/accountLists/AccountListFragment.kt @@ -97,7 +97,7 @@ class AccountViewHolder(binding: AccountListEntryBinding) : RecyclerView.ViewHol .circleCrop().placeholder(R.drawable.ic_default_user) .into(avatar) - username.text = account?.username + username.text = account?.display_name @SuppressLint("SetTextI18n") acct.text = "@${account?.acct}" } diff --git a/app/src/main/res/xml/network_security_config.xml b/app/src/main/res/xml/network_security_config.xml deleted file mode 100644 index 7471faca..00000000 --- a/app/src/main/res/xml/network_security_config.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - localhost - - \ No newline at end of file