diff --git a/README.md b/README.md index 8239c93c4..91587b543 100644 --- a/README.md +++ b/README.md @@ -93,9 +93,9 @@ New threads will be automatically added to the index and threads which get updat php artisan scout:flush App\\Models\\Thread ``` -### Twitter Sharing (optional) +### X (Twitter) Sharing (optional) -To enable published articles to be automatically shared on Twitter, you'll need to [create a Twitter app](https://developer.twitter.com/apps/). Once the app has been created, update the below variables in your `.env` file. The consumer key and secret and access token and secret can be found in the `Keys and tokens` section of the Twitter developers UI. +To enable published articles to be automatically shared on X, you'll need to [create an app](https://developer.x.com/apps/). Once the app has been created, update the below variables in your `.env` file. The consumer key and secret and access token and secret can be found in the `Keys and tokens` section of the X developers UI. ``` TWITTER_CONSUMER_KEY= diff --git a/app/Console/Commands/PostArticleToTwitter.php b/app/Console/Commands/PostArticleToTwitter.php index a5a94750a..fcb988346 100644 --- a/app/Console/Commands/PostArticleToTwitter.php +++ b/app/Console/Commands/PostArticleToTwitter.php @@ -11,7 +11,7 @@ final class PostArticleToTwitter extends Command { protected $signature = 'lio:post-article-to-twitter'; - protected $description = 'Posts the latest unshared article to Twitter'; + protected $description = 'Posts the latest unshared article to X'; public function handle(AnonymousNotifiable $notifiable): void { diff --git a/composer.json b/composer.json index c2e7defba..ed0e9211e 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "algolia/scout-extended": "^3.1", "blade-ui-kit/blade-heroicons": "^2.3", "blade-ui-kit/blade-icons": "^1.6", - "blade-ui-kit/blade-ui-kit": "^0.6", + "blade-ui-kit/blade-ui-kit": "^0.6.3", "blade-ui-kit/blade-zondicons": "^1.5", "codeat3/blade-simple-icons": "^5.0", "guzzlehttp/guzzle": "^7.2", diff --git a/composer.lock b/composer.lock index 1111da99e..18a30964b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "8a34c121f06019841fd92216b8ee196b", + "content-hash": "b73667ac3de654bc08e32d2b17c974b7", "packages": [ { "name": "abraham/twitteroauth", @@ -144,16 +144,16 @@ }, { "name": "algolia/scout-extended", - "version": "v3.1.0", + "version": "v3.1.1", "source": { "type": "git", "url": "https://github.com/algolia/scout-extended.git", - "reference": "74d8c73955c07ce52633f74005624545239a9522" + "reference": "dc325a3106da9271b7f0554739d873ded134d114" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/algolia/scout-extended/zipball/74d8c73955c07ce52633f74005624545239a9522", - "reference": "74d8c73955c07ce52633f74005624545239a9522", + "url": "https://api.github.com/repos/algolia/scout-extended/zipball/dc325a3106da9271b7f0554739d873ded134d114", + "reference": "dc325a3106da9271b7f0554739d873ded134d114", "shasum": "" }, "require": { @@ -164,7 +164,7 @@ "illuminate/database": "^9.0|^10.0|^11.0", "illuminate/filesystem": "^9.0|^10.0|^11.0", "illuminate/support": "^9.0|^10.0|^11.0", - "laravel/scout": "^9.0|^10.0", + "laravel/scout": "^9.0|^10.0 <10.11.6", "php": "^8.0", "riimu/kit-phpencoder": "^2.4" }, @@ -219,22 +219,22 @@ ], "support": { "issues": "https://github.com/algolia/scout-extended/issues", - "source": "https://github.com/algolia/scout-extended/tree/v3.1.0" + "source": "https://github.com/algolia/scout-extended/tree/v3.1.1" }, - "time": "2024-03-21T14:34:08+00:00" + "time": "2024-11-22T12:09:41+00:00" }, { "name": "aws/aws-crt-php", - "version": "v1.2.6", + "version": "v1.2.7", "source": { "type": "git", "url": "https://github.com/awslabs/aws-crt-php.git", - "reference": "a63485b65b6b3367039306496d49737cf1995408" + "reference": "d71d9906c7bb63a28295447ba12e74723bd3730e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/awslabs/aws-crt-php/zipball/a63485b65b6b3367039306496d49737cf1995408", - "reference": "a63485b65b6b3367039306496d49737cf1995408", + "url": "https://api.github.com/repos/awslabs/aws-crt-php/zipball/d71d9906c7bb63a28295447ba12e74723bd3730e", + "reference": "d71d9906c7bb63a28295447ba12e74723bd3730e", "shasum": "" }, "require": { @@ -273,22 +273,22 @@ ], "support": { "issues": "https://github.com/awslabs/aws-crt-php/issues", - "source": "https://github.com/awslabs/aws-crt-php/tree/v1.2.6" + "source": "https://github.com/awslabs/aws-crt-php/tree/v1.2.7" }, - "time": "2024-06-13T17:21:28+00:00" + "time": "2024-10-18T22:15:13+00:00" }, { "name": "aws/aws-sdk-php", - "version": "3.323.3", + "version": "3.329.0", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "9dec2a6453bdb32b3abeb475fc63b46ba1cbd996" + "reference": "37249799204e04cf3686d2b361cfd417d3dab123" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/9dec2a6453bdb32b3abeb475fc63b46ba1cbd996", - "reference": "9dec2a6453bdb32b3abeb475fc63b46ba1cbd996", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/37249799204e04cf3686d2b361cfd417d3dab123", + "reference": "37249799204e04cf3686d2b361cfd417d3dab123", "shasum": "" }, "require": { @@ -318,7 +318,7 @@ "paragonie/random_compat": ">= 2", "phpunit/phpunit": "^5.6.3 || ^8.5 || ^9.5", "psr/cache": "^1.0", - "psr/simple-cache": "^1.0", + "psr/simple-cache": "^1.0 || ^2.0 || ^3.0", "sebastian/comparator": "^1.2.3 || ^4.0", "yoast/phpunit-polyfills": "^1.0" }, @@ -371,9 +371,9 @@ "support": { "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "issues": "https://github.com/aws/aws-sdk-php/issues", - "source": "https://github.com/aws/aws-sdk-php/tree/3.323.3" + "source": "https://github.com/aws/aws-sdk-php/tree/3.329.0" }, - "time": "2024-10-08T18:05:47+00:00" + "time": "2024-11-21T19:16:09+00:00" }, { "name": "blade-ui-kit/blade-heroicons", @@ -527,16 +527,16 @@ }, { "name": "blade-ui-kit/blade-ui-kit", - "version": "0.6.2", + "version": "0.6.3", "source": { "type": "git", "url": "https://github.com/blade-ui-kit/blade-ui-kit.git", - "reference": "0369d4ce2433dff605b80c70726c9d231902e122" + "reference": "e6e8429956537a78b7ded3fff3d00eb382c6507c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/blade-ui-kit/blade-ui-kit/zipball/0369d4ce2433dff605b80c70726c9d231902e122", - "reference": "0369d4ce2433dff605b80c70726c9d231902e122", + "url": "https://api.github.com/repos/blade-ui-kit/blade-ui-kit/zipball/e6e8429956537a78b7ded3fff3d00eb382c6507c", + "reference": "e6e8429956537a78b7ded3fff3d00eb382c6507c", "shasum": "" }, "require": { @@ -554,7 +554,7 @@ "lorisleiva/cron-translator": "^0.1.1|^0.4", "orchestra/testbench": "^8.0|^9.0", "orchestra/testbench-dusk": "^8.0|^9.0", - "pestphp/pest": "^2.34", + "pestphp/pest": "^2.34|^3.0", "phpunit/phpunit": "^10.5|^11.0" }, "suggest": { @@ -601,7 +601,7 @@ "type": "github" } ], - "time": "2024-04-05T08:11:10+00:00" + "time": "2024-11-22T13:41:40+00:00" }, { "name": "blade-ui-kit/blade-zondicons", @@ -870,16 +870,16 @@ }, { "name": "composer/ca-bundle", - "version": "1.5.2", + "version": "1.5.3", "source": { "type": "git", "url": "https://github.com/composer/ca-bundle.git", - "reference": "48a792895a2b7a6ee65dd5442c299d7b835b6137" + "reference": "3b1fc3f0be055baa7c6258b1467849c3e8204eb2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/ca-bundle/zipball/48a792895a2b7a6ee65dd5442c299d7b835b6137", - "reference": "48a792895a2b7a6ee65dd5442c299d7b835b6137", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/3b1fc3f0be055baa7c6258b1467849c3e8204eb2", + "reference": "3b1fc3f0be055baa7c6258b1467849c3e8204eb2", "shasum": "" }, "require": { @@ -926,7 +926,7 @@ "support": { "irc": "irc://irc.freenode.org/composer", "issues": "https://github.com/composer/ca-bundle/issues", - "source": "https://github.com/composer/ca-bundle/tree/1.5.2" + "source": "https://github.com/composer/ca-bundle/tree/1.5.3" }, "funding": [ { @@ -942,7 +942,7 @@ "type": "tidelift" } ], - "time": "2024-09-25T07:49:53+00:00" + "time": "2024-11-04T10:15:26+00:00" }, { "name": "dflydev/dot-access-data", @@ -2012,28 +2012,28 @@ }, { "name": "jean85/pretty-package-versions", - "version": "2.0.6", + "version": "2.1.0", "source": { "type": "git", "url": "https://github.com/Jean85/pretty-package-versions.git", - "reference": "f9fdd29ad8e6d024f52678b570e5593759b550b4" + "reference": "3c4e5f62ba8d7de1734312e4fff32f67a8daaf10" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/f9fdd29ad8e6d024f52678b570e5593759b550b4", - "reference": "f9fdd29ad8e6d024f52678b570e5593759b550b4", + "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/3c4e5f62ba8d7de1734312e4fff32f67a8daaf10", + "reference": "3c4e5f62ba8d7de1734312e4fff32f67a8daaf10", "shasum": "" }, "require": { - "composer-runtime-api": "^2.0.0", - "php": "^7.1|^8.0" + "composer-runtime-api": "^2.1.0", + "php": "^7.4|^8.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.2", "jean85/composer-provided-replaced-stub-package": "^1.0", "phpstan/phpstan": "^1.4", - "phpunit/phpunit": "^7.5|^8.5|^9.4", - "vimeo/psalm": "^4.3" + "phpunit/phpunit": "^7.5|^8.5|^9.6", + "vimeo/psalm": "^4.3 || ^5.0" }, "type": "library", "extra": { @@ -2065,9 +2065,9 @@ ], "support": { "issues": "https://github.com/Jean85/pretty-package-versions/issues", - "source": "https://github.com/Jean85/pretty-package-versions/tree/2.0.6" + "source": "https://github.com/Jean85/pretty-package-versions/tree/2.1.0" }, - "time": "2024-03-08T09:58:59+00:00" + "time": "2024-11-18T16:19:46+00:00" }, { "name": "kylewm/brevity", @@ -2657,16 +2657,16 @@ }, { "name": "laravel/scout", - "version": "v10.11.4", + "version": "v10.11.5", "source": { "type": "git", "url": "https://github.com/laravel/scout.git", - "reference": "f9cf4f79163e3c5f13f81369d4992d66e6700502" + "reference": "e67e2015e2f6f15e0fa033fb2ceb248ba8c5fa36" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/scout/zipball/f9cf4f79163e3c5f13f81369d4992d66e6700502", - "reference": "f9cf4f79163e3c5f13f81369d4992d66e6700502", + "url": "https://api.github.com/repos/laravel/scout/zipball/e67e2015e2f6f15e0fa033fb2ceb248ba8c5fa36", + "reference": "e67e2015e2f6f15e0fa033fb2ceb248ba8c5fa36", "shasum": "" }, "require": { @@ -2731,7 +2731,7 @@ "issues": "https://github.com/laravel/scout/issues", "source": "https://github.com/laravel/scout" }, - "time": "2024-10-01T14:39:33+00:00" + "time": "2024-10-30T15:09:56+00:00" }, { "name": "laravel/serializable-closure", @@ -5765,16 +5765,16 @@ }, { "name": "spatie/backtrace", - "version": "1.6.2", + "version": "1.6.3", "source": { "type": "git", "url": "https://github.com/spatie/backtrace.git", - "reference": "1a9a145b044677ae3424693f7b06479fc8c137a9" + "reference": "7c18db2bc667ac84e5d7c18e33f16c38ff2d8838" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/backtrace/zipball/1a9a145b044677ae3424693f7b06479fc8c137a9", - "reference": "1a9a145b044677ae3424693f7b06479fc8c137a9", + "url": "https://api.github.com/repos/spatie/backtrace/zipball/7c18db2bc667ac84e5d7c18e33f16c38ff2d8838", + "reference": "7c18db2bc667ac84e5d7c18e33f16c38ff2d8838", "shasum": "" }, "require": { @@ -5812,7 +5812,7 @@ "spatie" ], "support": { - "source": "https://github.com/spatie/backtrace/tree/1.6.2" + "source": "https://github.com/spatie/backtrace/tree/1.6.3" }, "funding": [ { @@ -5824,7 +5824,7 @@ "type": "other" } ], - "time": "2024-07-22T08:21:24+00:00" + "time": "2024-11-18T14:58:58+00:00" }, { "name": "spatie/browsershot", @@ -6373,16 +6373,16 @@ }, { "name": "spatie/laravel-package-tools", - "version": "1.16.5", + "version": "1.16.6", "source": { "type": "git", "url": "https://github.com/spatie/laravel-package-tools.git", - "reference": "c7413972cf22ffdff97b68499c22baa04eddb6a2" + "reference": "1f26942dc1e5c49eacfced34fdbc29ed234bd7b3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/c7413972cf22ffdff97b68499c22baa04eddb6a2", - "reference": "c7413972cf22ffdff97b68499c22baa04eddb6a2", + "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/1f26942dc1e5c49eacfced34fdbc29ed234bd7b3", + "reference": "1f26942dc1e5c49eacfced34fdbc29ed234bd7b3", "shasum": "" }, "require": { @@ -6421,7 +6421,7 @@ ], "support": { "issues": "https://github.com/spatie/laravel-package-tools/issues", - "source": "https://github.com/spatie/laravel-package-tools/tree/1.16.5" + "source": "https://github.com/spatie/laravel-package-tools/tree/1.16.6" }, "funding": [ { @@ -6429,7 +6429,7 @@ "type": "github" } ], - "time": "2024-08-27T18:56:10+00:00" + "time": "2024-11-18T15:02:02+00:00" }, { "name": "spatie/laravel-schedule-monitor", @@ -6585,16 +6585,16 @@ }, { "name": "spatie/robots-txt", - "version": "2.2.2", + "version": "2.2.3", "source": { "type": "git", "url": "https://github.com/spatie/robots-txt.git", - "reference": "560d6d1776ee3a13af26ac4e04171a5d32f3923f" + "reference": "31763e5ca23fb0efa6dc6b700beb5ebfeab89432" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/robots-txt/zipball/560d6d1776ee3a13af26ac4e04171a5d32f3923f", - "reference": "560d6d1776ee3a13af26ac4e04171a5d32f3923f", + "url": "https://api.github.com/repos/spatie/robots-txt/zipball/31763e5ca23fb0efa6dc6b700beb5ebfeab89432", + "reference": "31763e5ca23fb0efa6dc6b700beb5ebfeab89432", "shasum": "" }, "require": { @@ -6629,7 +6629,7 @@ ], "support": { "issues": "https://github.com/spatie/robots-txt/issues", - "source": "https://github.com/spatie/robots-txt/tree/2.2.2" + "source": "https://github.com/spatie/robots-txt/tree/2.2.3" }, "funding": [ { @@ -6641,7 +6641,7 @@ "type": "github" } ], - "time": "2024-09-25T08:55:09+00:00" + "time": "2024-10-22T08:17:03+00:00" }, { "name": "spatie/temporary-directory", @@ -7005,16 +7005,16 @@ }, { "name": "symfony/dom-crawler", - "version": "v7.1.5", + "version": "v7.1.6", "source": { "type": "git", "url": "https://github.com/symfony/dom-crawler.git", - "reference": "b92af238457a7cdd2738f941cd525d76313e8283" + "reference": "794ddd5481ba15d8a04132c95e211cd5656e09fb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/b92af238457a7cdd2738f941cd525d76313e8283", - "reference": "b92af238457a7cdd2738f941cd525d76313e8283", + "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/794ddd5481ba15d8a04132c95e211cd5656e09fb", + "reference": "794ddd5481ba15d8a04132c95e211cd5656e09fb", "shasum": "" }, "require": { @@ -7052,7 +7052,7 @@ "description": "Eases DOM navigation for HTML and XML documents", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dom-crawler/tree/v7.1.5" + "source": "https://github.com/symfony/dom-crawler/tree/v7.1.6" }, "funding": [ { @@ -7068,7 +7068,7 @@ "type": "tidelift" } ], - "time": "2024-09-15T06:48:17+00:00" + "time": "2024-10-25T15:11:02+00:00" }, { "name": "symfony/error-handler", @@ -10130,16 +10130,16 @@ }, { "name": "myclabs/deep-copy", - "version": "1.12.0", + "version": "1.12.1", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c" + "reference": "123267b2c49fbf30d78a7b2d333f6be754b94845" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", - "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/123267b2c49fbf30d78a7b2d333f6be754b94845", + "reference": "123267b2c49fbf30d78a7b2d333f6be754b94845", "shasum": "" }, "require": { @@ -10178,7 +10178,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.12.0" + "source": "https://github.com/myclabs/DeepCopy/tree/1.12.1" }, "funding": [ { @@ -10186,7 +10186,7 @@ "type": "tidelift" } ], - "time": "2024-06-12T14:39:25+00:00" + "time": "2024-11-08T17:47:46+00:00" }, { "name": "nunomaduro/collision", diff --git a/resources/views/articles/overview.blade.php b/resources/views/articles/overview.blade.php index 3dc9131a3..5767b8e2c 100644 --- a/resources/views/articles/overview.blade.php +++ b/resources/views/articles/overview.blade.php @@ -15,7 +15,7 @@

Got some knowledge to share? - Share your article with our 50,000+ Twitter followers. + Share your article with our 50,000+ X (Twitter) followers.

diff --git a/resources/views/articles/show.blade.php b/resources/views/articles/show.blade.php index b473b2936..b6f5b14c7 100644 --- a/resources/views/articles/show.blade.php +++ b/resources/views/articles/show.blade.php @@ -158,7 +158,7 @@ class="prose prose-lg text-gray-800 prose-lio" @endif @if ($article->author()->hasTwitterAccount()) - + @endif diff --git a/resources/views/auth/passwords/reset.blade.php b/resources/views/auth/passwords/reset.blade.php index 1f2be51b8..7f10fd2c2 100644 --- a/resources/views/auth/passwords/reset.blade.php +++ b/resources/views/auth/passwords/reset.blade.php @@ -13,13 +13,13 @@
- + New Password
- + Confirm New Password
diff --git a/resources/views/components/articles/engage.blade.php b/resources/views/components/articles/engage.blade.php index 56b983798..10af3dca2 100644 --- a/resources/views/components/articles/engage.blade.php +++ b/resources/views/components/articles/engage.blade.php @@ -6,7 +6,7 @@ Share title().'" by '. ($article->author()->twitter() ? '@'.$article->author()->twitter() : $article->author()->name()) . ' - ') }}&url={{ urlencode(route('articles.show', $article->slug())) }}"> + href="http://x.com/share?text={{ urlencode('"'.$article->title().'" by '. ($article->author()->twitter() ? '@'.$article->author()->twitter() : $article->author()->name()) . ' - ') }}&url={{ urlencode(route('articles.show', $article->slug())) }}"> diff --git a/resources/views/components/articles/form.blade.php b/resources/views/components/articles/form.blade.php index 303a84e71..8e5c6bbf3 100644 --- a/resources/views/components/articles/form.blade.php +++ b/resources/views/components/articles/form.blade.php @@ -25,7 +25,7 @@ - Every article that gets approved will be shared with our 50.000 users and wil be tweeted out on our Twitter account which has over 50,000 followers. Feel free to submit as many articles as you like. You can even cross-reference an article on your blog with the original url. + Every article that gets approved will be shared with our 50.000 users and wil be tweeted out on our X (Twitter) account which has over 50,000 followers. Feel free to submit as many articles as you like. You can even cross-reference an article on your blog with the original url. @@ -38,7 +38,7 @@
- Title + @@ -50,7 +50,7 @@
- Body + @@ -73,7 +73,7 @@
- Tags + @foreach($tags as $tag) @@ -58,7 +56,9 @@
- Compose your question + + Compose your question + hasTwitterAccount()) - + @endif diff --git a/resources/views/layouts/_footer.blade.php b/resources/views/layouts/_footer.blade.php index 1b7949011..b309e68b3 100644 --- a/resources/views/layouts/_footer.blade.php +++ b/resources/views/layouts/_footer.blade.php @@ -41,9 +41,9 @@

- + - Twitter + (Twitter) diff --git a/resources/views/layouts/_nav.blade.php b/resources/views/layouts/_nav.blade.php index f91512cbf..6a8119589 100644 --- a/resources/views/layouts/_nav.blade.php +++ b/resources/views/layouts/_nav.blade.php @@ -13,7 +13,7 @@ - + @@ -145,7 +145,7 @@ - diff --git a/resources/views/users/articles.blade.php b/resources/views/users/articles.blade.php index e55c37140..51ce0d762 100644 --- a/resources/views/users/articles.blade.php +++ b/resources/views/users/articles.blade.php @@ -22,7 +22,7 @@
@unless(Auth::user()->hasTwitterAccount()) - Set your Twitter handle so we can link to your profile when we tweet out your article. + Set your X (Twitter) handle so we can link to your profile when we tweet out your article. @endunless diff --git a/resources/views/users/profile.blade.php b/resources/views/users/profile.blade.php index c77b29a27..5568a31cf 100644 --- a/resources/views/users/profile.blade.php +++ b/resources/views/users/profile.blade.php @@ -47,7 +47,7 @@ class="w-full bg-center bg-gray-800 h-60 container mx-auto" @endif @if ($user->hasTwitterAccount()) - + @endif diff --git a/resources/views/users/settings/api_tokens.blade.php b/resources/views/users/settings/api_tokens.blade.php index 776901481..909f9e107 100644 --- a/resources/views/users/settings/api_tokens.blade.php +++ b/resources/views/users/settings/api_tokens.blade.php @@ -39,7 +39,7 @@
- Token name +
diff --git a/resources/views/users/settings/profile.blade.php b/resources/views/users/settings/profile.blade.php index 1b43c2aaf..8d5fe287f 100644 --- a/resources/views/users/settings/profile.blade.php +++ b/resources/views/users/settings/profile.blade.php @@ -16,13 +16,13 @@
- +
- + {{ Auth::user()->bio() }} @@ -79,18 +79,18 @@
- Website +
- Twitter handle + X (Twitter) handle - Enter your Twitter handle without the leading @ symbol + Enter your X (Twitter) handle without the leading @ symbol
diff --git a/tests/Feature/ArticleTest.php b/tests/Feature/ArticleTest.php index b3e8ec048..3ac0e4104 100644 --- a/tests/Feature/ArticleTest.php +++ b/tests/Feature/ArticleTest.php @@ -489,7 +489,7 @@ $this->login(['twitter' => null]); $this->get('/articles/authored') - ->assertSeeText('Twitter handle', '') + ->assertSeeText('X (Twitter) handle', '') ->assertSee('so we can link to your profile when we tweet out your article.'); }); @@ -497,7 +497,7 @@ $this->login(); $this->get('/articles/authored') - ->assertDontSeeText('Twitter handle', '') + ->assertDontSeeText('X (Twitter) handle', '') ->assertDontSee('so we can link to your profile when we tweet out your article.'); });